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

2001-01-22 Thread Sam Liddicott

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]




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

2001-01-22 Thread Sam Liddicott

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]




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

2001-01-22 Thread Sascha Schumann

> 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 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-01-22 Thread Sam Liddicott



> -Original Message-
> From: Sascha Schumann [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 22, 2001 03:13
> To: Sam Liddicott
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP-DEV] c++ files as module
> 
> 
> > Is:
> >   AC_ADD_LIBRARY(stdc++)
> >
> > also my responsibility in config.m4?  [My associated 3rd 
> party .a's seem to
> > require it]
> 
> Not necessarily.  Do you need to perform any linkage tests in
> your config.m4 with that third party library?

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.

Sam

-- 
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]




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

2001-01-22 Thread Sascha Schumann

> Is:
>   AC_ADD_LIBRARY(stdc++)
>
> also my responsibility in config.m4?  [My associated 3rd party .a's seem to
> require it]

Not necessarily.  Do you need to perform any linkage tests in
your config.m4 with that third party library?

- Sascha


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-01-22 Thread Sam Liddicott



> -Original Message-
> From: Sascha Schumann [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 19, 2001 05:10
> To: Sam Liddicott
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] c++ files as module
> 
> 
> 
> > /bin/sh: I.: command not found
> > make[4]: [muscatapi.lo] Error 127 (ignored)
> 
> Your config.m4 lacks PHP_REQUIRE_CXX.

Is:
  AC_ADD_LIBRARY(stdc++)

also my responsibility in config.m4?  [My associated 3rd party .a's seem to
require it]

Sam

-- 
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]




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

2001-01-19 Thread Sascha Schumann


> /bin/sh: I.: command not found
> make[4]: [muscatapi.lo] Error 127 (ignored)

Your config.m4 lacks PHP_REQUIRE_CXX.

- Sascha


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]