Hi,

I am trying to re-build FlightGear with all the libs on a completely new
Cygwin system from scratch (mostly to learn all the annoyencies on the way
again and record the errors in the Getting Started).

The first one entered already while making Metakit. While compiling it I get

----------------------------------------------------------------------------
----
g++ -c -O2 -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
----------------------------------------------------------------------------
----

After consulting Google I found the problem is in no way new. It was
observed in Dec 2002 by Leo. The answer's from Norman Vine. He suggests
either to

replace the #if @ line 33 of string.cpp with

#if (!q4_MSVC && !q4_WATC) || ((defined(__CYGWIN__) || defined(__MINGW32__))
&& __GNUC__ < 3)

or to comment out the whole function. The first one did not help for me, but
the seond one did (thanks, Norman).

However, I can't suggest this to my valued readers ;-) My guess is, all
Cygwin users (I've got the feeling there are essentially 3 of us) once for
all compiled Metakit and let it alone - as I did before.

Question: What can we do to improve this situation?

Btw, this is with a very recent Cygwin System (as of yesterday using GCC
3.2) with Simgear/Metakit CVS.

Thanks, Michael

--
        Michael Basler, Jena, Germany
                [EMAIL PROTECTED]
      http://www.geocities.com/pmb.geo/


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to