[Dev-C++] Filename case shouldn't matter (overcoming '__gxx_personality_v0')
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Asko K. <ask...@sc...> - 2003-02-25 07:40:54
|
Hi, all! I moved a project over from VC++ to DevCpp recently and it seems I'm hooked! DevCpp is simpler to use than VC++ and since it's free.. Great! :) However, there was one big problem trying to get my source compiling on DevCpp. Or rather, once solved, it was minor. The case of the filenames had changed during transportation so I had 'MYFILE.C' instead of 'myfile.c' (on WinXP Home running under iMac Virtual PC if it matters). Normally, file case does _not_ matter in Windows so I didn't pay attention. Compilation ok, but then I get these 'missing __gxx_personality_v0' linker errors. Why?!? Turns out DevCpp (or rather, gcc) thinks my source is C++ since the extension is an uppercase '.C'. This is utterly confusing to newcomers so my suggestion would be: - Always feed Windows filenames to gcc in lowercase. This will make DevCpp behave as Windows people expect, and '.cpp' etc. can still be used for C++ source. This way, gcc behaviour itself would not need to be modified, only your interfacing with it. Any downsides to this suggestion? -ak |