Re: Beginner at writing a PHP Wrapper for C++ libraries

From: Date: Fri, 12 Jun 2009 21:48:38 +0000
Subject: Re: Beginner at writing a PHP Wrapper for C++ libraries
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-6471@lists.php.net to get a copy of this message
On Fri, 2009-06-12 at 23:42 +0200, Johannes Schlüter wrote: > On Fri, 2009-06-12 at 16:41 -0400, "Eric A. Boney" wrote: > > Is it possible to use an object file from the C++ library directly in the > > config.m4 file? I attempted to create a symlink to the cpp file that I needed for > > my extension but I get a ton of errors when I try to make the extension and I > > am guessing it is because this one cpp file that I need requires a ton of other > > header files. > > When using cpp, you have to use a C++ compiler, there's a m4 macro > PHP_REQUIRE_CXX, just put that on it's own line and call your files .cpp > and it should work. ah, one more hint: pecl/rar might be a sample for a C++ extension. johannes

« previous php.pecl.dev (#6471) next »