Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39934 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95644 invoked from network); 13 Aug 2008 22:18:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2008 22:18:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.55.154.21 as permitted sender) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.21 unknown Linux 2.4/2.6 Received: from [212.55.154.21] ([212.55.154.21:45265] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/56-63398-EBD53A84 for ; Wed, 13 Aug 2008 18:18:39 -0400 Received: (qmail 3994 invoked from network); 13 Aug 2008 22:18:35 -0000 Received: from unknown (HELO sapo.pt) (10.134.37.164) by relay1 with SMTP; 13 Aug 2008 22:18:35 -0000 Received: (qmail 10559 invoked from network); 13 Aug 2008 22:18:35 -0000 X-AntiVirus: PTMail-AV 0.3-0.92.0 X-Virus-Status: Clean (0.00460 seconds) Received: from unknown (HELO pc07654) (nunoplopes@sapo.pt@[85.240.54.187]) (envelope-sender ) by mta14 (qmail-ldap-1.03) with SMTP for ; 13 Aug 2008 22:18:35 -0000 Message-ID: <2BED3AFE583B418F91C775FFE1C7FBE4@pc07654> To: "Phil Oleson" , "Antony Dovgal" Cc: "PHP Internals List" References: <48A07CE7.7010404@nixil.net> <48A19790.20305@daylessday.org> <48A20148.5050902@nixil.net> <48A29724.2080705@daylessday.org> <48A35AFC.7050900@nixil.net> In-Reply-To: <48A35AFC.7050900@nixil.net> Date: Wed, 13 Aug 2008 23:18:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 Subject: Re: [PHP-DEV] pspell tweak. From: nlopess@php.net ("Nuno Lopes") > Antony Dovgal wrote: >> On 13.08.2008 01:31, Phil Oleson wrote: >>> Thus the diff -u I sent in.. which resolves the above compiler failure >>> with g++. >> >> Committed, thanks! >> >> Btw, how and why did you manage to get g++ compiling plain C code? > > umm.. how? > > cd ext/pspell > /usr/local/php5/bin/phpize > env CC=g++ CFLAGS=-fuse-cxa-atexit > ./configure --with-php-config=/usr/local/php5/bin/php-config > make > > C++ is a superset of C thus any C code can be complied as C++ as long as > it doesn't use any > C++ reserved words. That is not true at all, although it's a common misconception. Just try the following in C and in C++: printf("sizeof('x') == %d\n", (int)sizeof('x')); (hint: they will give you different results). And there are many more differences.. Nuno