0

I am creating my first extension but i have found this error compiling "ld library not found for -lphpcpp" how can i solve it? I am using mac osx yosemite

  • You need to install phpcpp http://www.php-cpp.com/documentation/install, the compiler cannot find the library – Roby Aug 30 '16 at 12:30
  • is installed the phpcpp but when i build the extension i've this error:sudo make g++ -shared -undefined dynamic_lookup -o yourextension.so main.o -lphpcpp ld: library not found for -lphpcpp clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [yourextension.so] Error 1 – Kissema Eduardo Rafael Aug 31 '16 at 17:10
  • you need to specify the library path with -L – Roby Aug 31 '16 at 18:43

0 Answers0