Paul Deppe writes: > > I am trying to rebuild Metakit with Cygwin gcc 3.2 in order to get FGFS to > link properly. I get the following error (with both mk4 version 2.4.3 and > 2.4.8): > > g++ -c -O2 -DWIN32 -DNDEBUG -I../unix/../include -I../unix/../src -I. > ../unix/.. > /src/string.cpp -DDLL_EXPORT -DPIC > ../src/string.cpp: In function `int strcasecmp(const char*, const char*)': > ../src/string.cpp:39: `int strcasecmp(const char*, const char*)' was > declared > `extern' and later `static' > /usr/include/string.h:60: previous declaration of `int strcasecmp(const > char*, > const char*)' > make: *** [string.o] Error 1 > > I've found some discussions about this on the lists but no solutions. Has > anyone out there successfully rebuilt mk4 with the latest Cygwin/gcc 3.2, > and, if so, how? FYI - I just commented out the offending function
but could you try replacing the #if @ line 33 with #if (!q4_MSVC && !q4_WATC) || ((defined(__CYGWIN__) || defined(__MINGW32__)) && __GNUC__ < 3) FWIW I am kind of baffled as to why this problem is just showing up now though in that the code from <string.h> was added a long time go < according to the newlib change log Fri Jun 6 14:07:59 1997 > Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
