User forums > General (but related to Code::Blocks)
TDM-GCC 4.5 series (Latest: 4.5.2 - 2011-03-27)
TDragon:
TDM-GCC does *not* create programs that rely on the libgcc DLL by default, so you are either
* specifying "-shared-libgcc" on the command line, or
* linking with code that was compiled with another version of GCC, or
* using a different version of GCC, not TDM-GCC.
Make sure that no other version of GCC is being used -- especially, do *not* have an installation in C:\mingw (or D:\mingw, etc.), as that location is searched by default in every GCC installation!
Phenom:
--- Quote from: TDragon on September 04, 2010, 10:33:37 pm ---
* using a different version of GCC, not TDM-GCC.
--- End quote ---
You were right about that:
--- Code: ---gcc --version
gcc (GCC) 4.5.0
Copyright (C) 2010 Free Softwarre Foundation, Inc.
<License stuff>
--- End code ---
I guess I messed things up during installation. Well, recompiling with the actual TDM-GCC will solve this, right?
Phenom:
I successfully installed TDM-GCC 4.5.1 but I get link errors:
--- Code: ---obj\ZTimerManager.o:ZTimerManager.cpp:(.text+0xcd): undefined reference to `_Unwind_Resume'
obj\ZTimerManager.o:ZTimerManager.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0
--- End code ---
I found some solutions like linking with libstdc++, someone mentioned that "__gxx part indicates that this is a g++-specific implementation issue. The .eh_frame probably indicates that it is concerned with exception handling, code for which may be automatically inserted for C++ programs. If so, you could disable exceptions with a compiler flag or link in the proper symbols from a library that came with your compiler (perhaps libstdc++?) " but none of these work.
Is there a flag or option I shoud add?
TDragon:
Those link errors are from object files that were compiled with the other version of GCC. You need to recompile everything with the new version.
Phenom:
--- Quote from: TDragon on September 05, 2010, 04:48:27 pm ---Those link errors are from object files that were compiled with the other version of GCC. You need to recompile everything with the new version.
--- End quote ---
I keep getting errors after rebuilding the whole project(though Build->Rebuild).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version