Ad

PHP Warning: PHP Startup: Unable To Load Dynamic Library: /home/lib.so So: Undefined Symbol: __gxx_personality_v0 In Unknown On Line 0

- 1 answer

i've managed to succesfully create an .php extension. I would like to move further. Insted of using the .cc that i want my .php to link with i would like to add the library.so. When compiling i have this error.

how to solve it?

thx. appreciate

EDIT:

I succed to compile it. now i have this error: undefined symbol: _ZN3CarC1Ei. why? it is true i did not add the .cc code. how to add iin config.m4 the .so file that contans the .h and .cc with which i wpuld like to work from php?

Ad

Answer

I guess you need to link with libstdc++. Or compile with g++ instead of gcc, then libstdc++ will be linked by default.

Ad
source: stackoverflow.com
Ad