[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problem using 4.2.1-sjlj MingW cross compiler on Debian AMD64:functions not declared



Hi,

I have a problem with a 4.2.1-sjlj Ming cross compiler on Debian (both
with my own compiled and the Debian version)

Compiling any C++ source using a C++ compiler header included (e.g.
cstdlib)  result in the following kind of errors:

/home/jkr/mingw_cross_env-1.4/usr/lib/gcc/i386-mingw32msvc/4.2.1-sjlj/include/c++/cstdlib:164: error: '::lldiv_t' has not been declared
/home/jkr/mingw_cross_env-1.4/usr/lib/gcc/i386-mingw32msvc/4.2.1-sjlj/include/c++/cstdlib:170: error: '::_Exit' has not been declared
/home/jkr/mingw_cross_env-1.4/usr/lib/gcc/i386-mingw32msvc/4.2.1-sjlj/include/c++/cstdlib:177: error: '::llabs' has not been declared
/home/jkr/mingw_cross_env-1.4/usr/lib/gcc/i386-mingw32msvc/4.2.1-sjlj/include/c++/cstdlib:179: error: 'lldiv_t' does not name a type
/home/jkr/mingw_cross_env-1.4/usr/lib/gcc/i386-mingw32msvc/4.2.1-sjlj/include/c++/cstdlib:183: error: '::lldiv' has not been declared
/home/jkr/mingw_cross_env-1.4/usr/lib/gcc/i386-mingw32msvc/4.2.1-sjlj/include/c++/cstdlib:198: error: '::strtof' has not been declared

Using stdlib.h with the same source compiles OK.

I have the impression that it has something to do with C99 support
(because alle errors are within some GCC macros about C99) but I don't
have any idea how to solve it. Is there anyone with any idea where to
look or what to try (e.g. maybe I should use some configure options for
either the build of the compiler or the build of my own executable)?

TIA

-- 
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl


Reply to: