On Tue, Dec 01, 2009 at 05:51:03PM +0800, aaron lwe wrote:
Hi,
I want to cross build wxMSW-2.8.10 under fedora 12, but when I did a configure, it gave me the following error message: checking size of boolean... configure: error: cannot compute sizeof(boolean), 77 See `config.log' for more details.
I had no problems cross building wxMSW-2.8.10 under fedora 11. configure:26896: i686-pc-mingw32-gcc -c conftest.c >&5 conftest.c: In function 'main': conftest.c:68: error: 'boolean' undeclared (first use in this function) conftest.c:68: error: (Each undeclared identifier is reported only once conftest.c:68: error: for each function it appears in.)
You'll probably want to have a look at the configure.{in,ac} file to see what causes this error. But the error itself is pretty clear: C doesn't define a type called "boolean"! The code should probably be using _Bool instead (standardized in C99).
Rich.