Re: C++ extensions and ext_skel

From: Date: Fri, 29 Nov 2002 15:36:28 +0000
Subject: Re: C++ extensions and ext_skel
Groups: php.dev 
Request: Send a blank email to php-dev+get-91924@lists.php.net to get a copy of this message
The only modified file is ext_skel. There's also the addition of a file in ext/skeleton -- skeleton.cpp to go along with skeleton.c. I suppose I could get rid of the .cpp file, make a few changes to skeleton.c and have ext_skel make the proper modifications when it's replacing "extname", "EXTNAME" and whatnot. The changes to config.m4 and Makefile.in are done in ext_skel. J Sascha Schumann wrote: > On Thu, 28 Nov 2002, J Smith wrote: > >> >> A couple of times a month, I get questions about from people looking to >> use C++ with PHP. Apparently, a lot of people end up reading some post I >> made to php.dev or something a year or so ago about C++, and although it >> worked at the time, the procedure I describe has become stale. >> >> I messed around a bit with ext_skel and ext/skeleton today and added an >> option to ext_skel (--cpp) that creates a basic C++ extension rather than >> the standard C extension. The C++ extension is pretty much the same as >> the standard C extension, with the exception of some extern "C" linkage, >> modifications to config.m4 and Makefile.in and a small C++ class thrown >> in for fun. > > Cannot those be unified? > > - Sascha

« previous php.dev (#91924) next »