Re: pspell tweak.

From: Date: Wed, 13 Aug 2008 22:18:34 +0000
Subject: Re: pspell tweak.
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-39934@lists.php.net to get a copy of this message
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

« previous php.internals (#39934) next »