Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building PHP-CPP in mingw #389

Open
LorenceHernandez opened this issue Aug 22, 2018 · 0 comments
Open

Error when building PHP-CPP in mingw #389

LorenceHernandez opened this issue Aug 22, 2018 · 0 comments

Comments

@LorenceHernandez
Copy link

||=== Build: all in phpcpp (compiler: GNU GCC Compiler) ===|
F:\libs\php-cpp\zend\includes.h|40|fatal error: php.h: No such file or directory|
CMakeFiles\phpcpp.dir\build.make|62|recipe for target 'CMakeFiles/phpcpp.dir/zend/base.cpp.obj' failed|
CMakeFiles\Makefile2|108|recipe for target 'CMakeFiles/phpcpp.dir/all' failed|
F:\libs\php-cpp-binary\Makefile|82|recipe for target 'all' failed|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|

This is the error I am getting.

Before that, I was getting different error which I fixed by modifying the CMakeLists.txt by enabling c++11.

Here is the new CMakeLists:
https://pastebin.com/UtVyVnJH

I only added line 12 and 14

I am using CodeBlocks 17.12 IDE
gcc 5.1.0
g++ 5.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant