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: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]]
> > Sent: Monday, January 22, 2001 03:52
> > To: Sam Liddicott
> > Cc: [EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]