__rethrow RE: [PHP-DEV] c++ files as module
| From: | Sam Liddicott | Date: | Mon, 22 Jan 2001 16:27:43 +0000 |
| Subject: | __rethrow RE: [PHP-DEV] c++ files as module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44722@lists.php.net to get a copy of this message | ||
Gibber! I commented out a line to avoid this error:
/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/muscat/muscatapi.cpp:107:
undefined reference to `__rethrow'
which is why it compiled without stdg++ agghhh.
Anyway; yes your 3rd example solves it nicely so I'll stick to that.
Sam
> -----Original Message-----
> From: Sam Liddicott
> Sent: Monday, January 22, 2001 04:20
> To: Sascha Schumann; Sam Liddicott
> Cc: php-dev@lists.php.net
> Subject: RE: [PHP-DEV] c++ files as module
>
>
> 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
> >
>