Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Sascha Schumann
Please supply 1 as the 6th argument to PHP_NEW_EXTENSION. - Sascha -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread J Smith
Actually, try this instead of PHP_ADD_LIBRARY(stdc++) and see if that works... PHP_ADD_LIBRARY(stdc++, 1, BIAC_SHARED_LIBADD) J Michel M. Dos Santos wrote: > > Yes. > > My config.m4: > > > PHP_ARG_ENABLE(biac, for biac support,[ --enable-biacEnable biac > support]) > > if test "$

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread J Smith
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

RE: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Dave Viner
2003 1:04 PM To: Dave Viner; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Re: modules in c++ Yes. My config.m4: PHP_ARG_ENABLE(biac, for biac support,[ --enable-biacEnable biac support]) if test "$PHP_BIAC" != "no" ; then PHP_AD

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Michel M. dos Santos
TED]; [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] Re: modules in c++ > > > > > 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' -

RE: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Dave Viner
do you have the PHP_REQUIRE_CXX() in your config.m4? dave -Original Message- From: Michel M. dos Santos [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:43 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Re: modules in c++ J, First

Re: [PHP-DEV] Re: modules in c++

2003-03-05 Thread Michel M. dos Santos
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 (

[PHP-DEV] Re: modules in c++

2003-03-05 Thread J Smith
That should still work fine, though, shouldn't it? I mean, the .so spit out should be working properly. I just tested this with a C++ extension and while gcc was used by libtool for the linking, the extension works fine. If you really want the C++ compiler to do the linking, you can open up libto