> cygwin can compile the .cpp files but when linking everything together, > always "undefined reference" messages appear for the line with close(): > > ---------- > g++ -mno-cygwin -w -march=i686 -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp > -I"./someDir" > -c -o x1.o x1.cpp > ... > g++ -mno-cygwin -fPIC -shared -o xxx_i686.dll x1.o x2.o x3.o ... -lm
Using -mno-cygwin means you are no longer compiling a cygwin app, but using the MingW cross-compiler bundled with cygwin, but not fully supported on this list. You are better off asking on the mingw list in that case. One thing is for certain - you cannot mix files compiled for cygwin with files compiled with -mno-cygwin; if that has happened, that would explain the link errors you are seeing. -- Eric Blake -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/