Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   problem using 4.2.1-sjlj MingW cross compiler on Debian AMD64:functions not declared (http://www.linux-archive.org/debian-user/128722-problem-using-4-2-1-sjlj-mingw-cross-compiler-debian-amd64-functions-not-declared.html)

"Joost Kraaijeveld" 07-21-2008 02:03 PM

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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


All times are GMT. The time now is 08:12 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.