I'm attempting to compile SimGear using mingw/msys on a Windows XP box.
I've set it up following the instructions in the wiki, and downloaded
the precompiled libraries for pthread and such. However, I get the
following error when trying to make:
make[3]: Entering directory
`/c/fgcompile/simgear/source/simgear/environment'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../.. -I/fg/include
-g -O2 -D_REENTRANT -MT metar.o -MD -MP -MF ".deps/metar.Tpo" -c -o
metar.o metar.cxx; \
then mv -f ".deps/metar.Tpo" ".deps/metar.Po"; else rm -f
".deps/metar.Tpo"; exit 1; fi
metar.cxx: In member function `void SGMetar::useCurrentDate()':
metar.cxx:162: error: `gmtime_r' undeclared (first use this function)
metar.cxx:162: error: (Each undeclared identifier is reported only once
for each function it appears in.)
make[3]: *** [metar.o] Error 1
gmtime_r is defined in pthreads.h which resides in /fg/include, which is
included in the commandline as you may see. however, this file does not
seem to be included since it is unable to find the definition.
Any suggestions?
--
Frank Olaf Sem-Jacobsen
_______________________________________________
Flightgear-users mailing list
Flightgear-users@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d