Edit report at https://bugs.php.net/bug.php?id=61177&edit=1
ID: 61177
User updated by: jmc at chakra-project dot org
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:
Yes, I've tried to change the #include directive like this:
extern "C" {
#include <sapi/embed/php_embed.h>
}
and it gave me the same results.
Previous Comments:
------------------------------------------------------------------------
[2012-02-24 11:55:12] [email protected]
Can you try surrounding the include with extern "C" { ... }
This is probably a bug nevertheless because the headers should ensure this.
------------------------------------------------------------------------
[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