I'm having trouble compiling metakit under cygwin with gcc 3.0.4: g++ -c -g -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
The compiler's seeing the Standard definition in <string> because <string> is included by mk4str.h, which is included by header.h, and q4_STD is (presumably) defined (line 30 of mk4str.h). Removing "static" at line 38 of string.cpp works, but I probably should have found something better. Please advise. -- Help me live longer! Help yourself to live longer! Run folding@home on your computer and help cure disease! Go to http://folding.stanford.edu P.S.: Please mail me ONLY at the address [EMAIL PROTECTED] Mail to other addresses will be discarded unread. -- end signature block -- ------------------------- _______________________________________________ metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
