Re: [PHP4BETA] Writing PHP4 Extensions in C++

From: Date: Wed, 22 Mar 2000 13:22:30 +0000
Subject: Re: [PHP4BETA] Writing PHP4 Extensions in C++
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-12489@lists.php.net to get a copy of this message
Hi Klaus! On Wed, 22 Mar 2000, Klaus Reimer wrote: > Hi, > > > > Have I to recompile PHP4 with a C++ compiler to be able to use PHP4 extension > > > modules written in C++? Is there a configuration switch in the Makefile to > > > switch to C++? Or is it just impossible to use C++ code for PHP4 extension > > > libraries? > > you should be able to do so - plz make sure that u export the > > get_module() symbol as extern "C". that's the one and only > > enty point dl() needs to initialize a .so module! > > Man, I love you. :-) That's the solution. Now C++ is working. Classes and STL > are working, too. Thank you! Not to be a kiddie, but I am damn curious to see how you did it :-) If it isn't some close source can `we' have a look at it? -- teodor

« previous php.version4 (#12489) next »