Re: Re: Linking problem with extension written in C++

From: Date: Mon, 14 Apr 2003 16:10:27 +0000
Subject: Re: Re: Linking problem with extension written in C++
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-904@lists.php.net to get a copy of this message
On Mon, 2003-04-14 at 16:19, Jay Smith wrote: > There are a few header files that you have to include with extern "C" so > their names get mangled properly into C++. Try wrapping php.h, php_ini.h > and info.h in extern "C" and see how that goes. How come we don't have extern C wrapped in #ifdef __cplusplus in these files already, so they can just be included straight away? Like this: #ifdef __cplusplus extern "C" { #endif // yadda yadda #ifdef __cplusplus }; #endif -- Best regards, Per Lundberg / Capio ApS Phone: +46-18-4186040 Fax: +46-18-4186049 Web: http://www.nobolt.com

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.internals (#904) next »