The problems described below appeared after I upgraded to the latest versions of the cygwin release. It disappeared when I went back to gcc-2.95.3, leaving all the other utilities at the latest version. This suggests to me the problem lies in gcc-3.2.1, or in how I have it configured.
Why won't gcc simp.cpp -o simp compile the incredibly simple program below without generating e-messages like /DOCUME~1/Mark/LOCALS~1/Temp/ccRtp1xR.o(.eh_frame+0x11):simp.cpp: undefined reference to `___gxx_personality_v0' collect2: ld returned 1 exit status Why must I replace gcc with g++ or c++ after upgrading from gcc-2.95.3-5 to 3.2.1 ? Are error messages like /DOCUME~1/Mark/LOCALS~1/Temp/ccBuHJFC.o(.text+0x948):anv.cpp: undefined reference to `operator new(unsigned)' /DOCUME~1/Mark/LOCALS~1/Temp/ccBuHJFC.o(.text+0x979):anv.cpp: undefined reference to `__cxa_begin_catch' /DOCUME~1/Mark/LOCALS~1/Temp/ccBuHJFC.o(.text+0x9a5):anv.cpp: undefined reference to `__cxa_end_catch' in response to compiling a slightly more complicated cpp program with gcc related, or due to something else? My slightly more complicated program will compile if I replace gcc with g++, but the compiled program bombs immediately. Is there a simple fix other than using gcc-2.95.3-5 instead of 3.2-1? Thank you, Mark Schoenberg --------------------------------------------------------------------------------- /* Program simp.cpp*/ #include <Windows.h> int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, char * cmdParam, int cmdShow) { MessageBox (NULL,"Hello world", NULL, MB_SYSTEMMODAL|MB_OK|MB_ICONHAND); PostQuitMessage( -1 ); exit(-1); } //End WinMain -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/