Search code examples
phpc++macosphp-cpp

php-cpp zend/php.h not found


I wanted to test the php-cpp possibilities but while using "make" it throughs "php.h" missing at me:

g++ -Wall -c -g -std=c++11 -fpic `php-config --includes` -o zend/base.o zend/base.cpp
In file included from zend/base.cpp:8:
zend/includes.h:35:10: fatal error: 'php.h' file not found
#include <php.h>
         ^
1 error generated.
make: *** [zend/base.o] Error 1

How can I fix it? I`m on osx10.9.3 and if it's relevant I'm using xampp for php projects. The documentation of php-cpp http://www.php-cpp.com/documentation/install.


Solution

  • Oke, apparently what you need to do is download the php source from: - nl3.php.net/downloads.php Copy the "zend" folder from the package and paste it to the php-cpp folder (delete the old one and rename the new one to "zend").