Re: [PHP-DEV] Re: modules in c++
[email protected] (J Smith) Wed, 05 Mar 2003 16:40:24 -0500
| Newsgroups | php.dev |
|---|---|
| Message-ID | <[email protected]> |
Looks like you need to link to the standard C++ library. Try putting this in your config.m4 file: PHP_ADD_LIBRARY(stdc++) And run phpize, configure and make again. That should make gcc link with stdc++. J Michel M. Dos Santos wrote: > > > J, > > First, thanks by your article. My original e first problem is : > > PHP Warning: Unable to load dynamic library > '/usr/lib/php4/20010901/biac.so' - /usr/lib/php4/20010901/biac.so: > undefined symbol: endl__FR7ostream in Unknown on line 0 > > The use of cout (in this case) result it. I try with std::cout or using > namespace std but not resolve. Linking with g++ the error dont occur. > > What is wrong ? > > Thanks a lot, > > Michel M. dos Santos > > >