RE: [PHP-DEV] c++ files as module

From: Date: Mon, 22 Jan 2001 16:20:06 +0000
Subject: RE: [PHP-DEV] c++ files as module
Groups: php.dev 
Request: Send a blank email to php-dev+get-44721@lists.php.net to get a copy of this message
Yes, the 3rd example worked - but then so did taking it all out altogther. I've been having various linking problems all day as I try and combine c and cpp modules with global variables and such, and can only think that various use of extern "C" { and such have been causing problems. So for now, I don't seem to explicilty mention stdc++ at all and it all links fine I'll get back if I discover something else. THanks Sam > -----Original Message----- > From: Sascha Schumann [mailto:sascha@schumann.cx] > Sent: Monday, January 22, 2001 03:52 > To: Sam Liddicott > Cc: php-dev@lists.php.net > Subject: RE: [PHP-DEV] c++ files as module > > > > No, Idon't do any linkage tests; but if I don't do it, at > php link time I > > get errors of various istream, ostream etc unresolved > links. If I do it, it > > links fine. > > Perhaps we should provide a macro for that purpose, as the > standard C++ library is available under various names: > > AC_CHECK_LIB(C, cin) > AC_CHECK_LIB(g++, cin) > AC_CHECK_LIB(stdc++, cin) > AC_CHECK_LIB(cxx, cin) > > I think it would be fine, if you would use the third test > until we decide to improve this area. > > - Sascha > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.dev (#44721) next »