Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 680
Adrian Z. Avatar asked Dec 12 '25 10:12

Adrian Z.


1 Answers

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").

like image 105
Adrian Z. Avatar answered Dec 14 '25 01:12

Adrian Z.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!