我想测试 php-cpp 的可能性,但是在使用“make”时,它会通过“php.h”在我身上丢失:
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
我该如何解决?我在 osx10.9.3 上,如果相关,我将 xampp 用于 php 项目。php-cpp 的文档http://www.php-cpp.com/documentation/install。