[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] SIP-4.0rc1 minor build /install issues
From:       Gerard Vermeulen <gvermeul () grenoble ! cnrs ! fr>
Date:       2003-12-13 16:28:27
[Download RAW message or body]

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

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

[packer@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

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic