Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:904 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28157 invoked from network); 14 Apr 2003 16:10:27 -0000 Received: from unknown (HELO salem) (212.209.116.169) by pb1.pair.com with SMTP; 14 Apr 2003 16:10:27 -0000 Received: from localhost (localhost [127.0.0.1]) (uid 1000) by salem with local; Mon, 14 Apr 2003 18:10:28 +0200 To: jay@php.net Cc: internals@lists.php.net In-Reply-To: <20030414142344.28249.qmail@pb1.pair.com> References: <20030412125758.GA5060@mail.host.sk> <20030414142344.28249.qmail@pb1.pair.com> Organization: Capio ApS Message-ID: <1050336627.1114.129.camel@salem.intra.nobolt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_salem-19845-1050336628-0001-2" X-Mailer: Ximian Evolution 1.2.2 Date: 14 Apr 2003 18:10:27 +0200 Subject: Re: [PHP-DEV] Re: Linking problem with extension written in C++ From: per@nobolt.com (Per Lundberg) --=_salem-19845-1050336628-0001-2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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.=20 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 --=_salem-19845-1050336628-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+mt1zTN4aRo9LnpERAon4AJ0RP/rNHjp8E6LaKYSroicu12IfPACdE9A1 +qaQ32gKAGSQ+XmWW/5IKmw= =4fno -----END PGP SIGNATURE----- --=_salem-19845-1050336628-0001-2--