Bug #61177 [Opn]: Unable to compile when including sapi/embed/php_embed.h

From: Date: Fri, 24 Feb 2012 11:55:12 +0000
Subject: Bug #61177 [Opn]: Unable to compile when including sapi/embed/php_embed.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-167790@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61177&edit=1

 ID:                 61177
 Updated by:         cataphract@php.net
 Reported by:        jmc at chakra-project dot org
 Summary:            Unable to compile when including
                     sapi/embed/php_embed.h
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Windows XP Professional SP3
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

Can you try surrounding the include with extern "C" { ... }

This is probably a bug nevertheless because the headers should ensure this.


Previous Comments:
------------------------------------------------------------------------
[2012-02-24 11:43:37] jmc at chakra-project dot org

Description:
------------
After having compiled PHP from the 5_3_10 SVN branch as described in an earlier 
bug report (https://bugs.php.net/bug.php?id=61175), I've set up my project to 
point to the include directories from the extracted snapshot archives and I have 
defined the PHP_WIN32 and ZEND_WIN32 macros. After this, I launched the program 
compilation and it failed.

The software configuration is the same as described in the other bug report.

Test script:
---------------
This is the source file where the compilation stops with an error: http://paste.kde.org/428270/00820021/

Expected result:
----------------
The compilation should complete flawlessly (as it does on a Linux platform with 
the same compilation options and the same code).

Actual result:
--------------
The compilation fails with errors.

Compilation error log: http://paste.kde.org/428264/33008173/


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61177&edit=1


Thread (10 messages)

« previous php.bugs (#167790) next »