[PyKDE] SIP-4.0rc1 minor build /install issues

Gerard Vermeulen gvermeul at grenoble.cnrs.fr
Sat Dec 13 17:29:01 GMT 2003


On Sat, 13 Dec 2003 11:17:47 +0000
Phil Thompson <phil at riverbankcomputing.co.uk> wrote:

> I meant is there a standard way of testing if bool is supported?

[packer at venus packer]$ python
Python 2.2.3 (#1, Nov 21 2003, 21:30:50)
[GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.dist import Distribution
>>> from distutils.command.config import config
>>> c = config(Distribution())
>>> print c.try_compile("int main() { bool b; return 0; }", lang="c")
compiling '_configtest.c':
int main() { bool b; return 0; }
cc -c _configtest.c -o _configtest.o
_configtest.c: In function `main':
_configtest.c:1: `bool' undeclared (first use in this function)
_configtest.c:1: (Each undeclared identifier is reported only once
_configtest.c:1: for each function it appears in.)
_configtest.c:1: parse error before `b'
failure.
removing: _configtest.c _configtest.o
0
>>> print c.try_compile("int main() { bool b; return 0; }", lang="c++")
compiling '_configtest.cxx':
int main() { bool b; return 0; }
cc -c _configtest.cxx -o _configtest.o
success!
removing: _configtest.cxx _configtest.o
1
>>>

Gerard




More information about the PyQt mailing list