Re: [PHP-DEV] Re: Support for C++ extension in UNIX builds

2003-08-22 Thread Mark Spruiell
> Mark Spruiell wrote: >> >> Unlike GCC, Sun's C and C++ compilers are independent entities, therefore >> you can't link a C++ program or shared library when the C compiler is >> driving the linker. It's also not possible to compile PHP's C code with >> Sun's C++ compiler. >> >> I guess we're a lit

Re: [PHP-DEV] Re: Support for C++ extension in UNIX builds

2003-08-22 Thread Jay Smith
Mark Spruiell wrote: > > Unlike GCC, Sun's C and C++ compilers are independent entities, therefore > you can't link a C++ program or shared library when the C compiler is > driving the linker. It's also not possible to compile PHP's C code with > Sun's C++ compiler. > > I guess we're a little spo

Re: [PHP-DEV] Re: Support for C++ extension in UNIX builds

2003-08-22 Thread Mark Spruiell
> > fwiw, I've never had these problems with gcc's C++ compiler on Solaris when > building C++ extensions, and the final linking step is usually done by gcc, > not g++. When you do the linking, do you link to the stdc++ library? Unlike GCC, Sun's C and C++ compilers are independent entities, there

[PHP-DEV] Re: Support for C++ extension in UNIX builds

2003-08-20 Thread Jay Smith
fwiw, I've never had these problems with gcc's C++ compiler on Solaris when building C++ extensions, and the final linking step is usually done by gcc, not g++. When you do the linking, do you link to the stdc++ library? J Mark Spruiell wrote: > I've written a PHP5 extension in C++ that build