This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems compiling


Hi again,

after grabbing the latest source with cvs, I tried to build according to
the instructions in RELEASE-NOTES. This is on a FreeBSD-2.2.8-stable
box, with egcs-1.1.1.


When I issue the make command from the build directory, all goes fine
until make enters the string subdir, at which point I get:

gcc -DHAVE_CONFIG_H -I. -I../../libstdc++/string -I.. -g -O2 -c -fPIC
-DPIC ../../libstdc++/string/wmemcmp.c
../../libstdc++/string/wmemcmp.c: In function `wmemcmp':
../../libstdc++/string/wmemcmp.c:36: `wint_t' undeclared (first use in
this function)
../../libstdc++/string/wmemcmp.c:36: (Each undeclared identifier is
reported only once
../../libstdc++/string/wmemcmp.c:36: for each function it appears in.)
../../libstdc++/string/wmemcmp.c:36: parse error before `c1'
../../libstdc++/string/wmemcmp.c:41: `c1' undeclared (first use in this
function)
../../libstdc++/string/wmemcmp.c:41: parse error before `s1'
../../libstdc++/string/wmemcmp.c:42: `c2' undeclared (first use in this
function)
../../libstdc++/string/wmemcmp.c:42: parse error before `s2'
*** Error code 1


It would seem that gcc looks for stddef.h in /usr/include, as it should.
But wint_t is not declared in there. Instead, it is declared in
/usr/include/g++/std/stddef.h, which is where g++ would be looking for
it.

Is wint_t declared in /usr/include/stddef.h on other systems ?

When I tried to configure with CC=g++ as well as CXX=g++, I got the
following:

Making all in math
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I.
-I../../libstdc++/math -I..     -g -O2 -c
../../libstdc++/math/signbitf.c
g++ -DHAVE_CONFIG_H -I. -I../../libstdc++/math -I.. -g -O2 -c -fPIC
-DPIC ../../libstdc++/math/signbitf.c
In file included from ../../libstdc++/math/signbitf.c:32:
../../libstdc++/math/mathconf.h:141: #error "We need FINITE_P"
../../libstdc++/math/mathconf.h:191: #error "We need INFINITE_P"
*** Error code 1


Any help would be appreciated... thanks.

-- 
Luc Morin    <luc_m@videotron.ca>
Electrical Engineering Technologist


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]