Code::Blocks Forums
User forums => Help => Topic started by: JeZLee on December 10, 2008, 02:14:35 pm
-
Dev C++ to Code::Blocks - project wont link...
Hi,
I am switching from Dev C++ to Code::Blocks.
Dev C++ project successfully imported into Code::Blocks.
When I build project I get following linker error:
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x167): undefined reference to `___cpu_features_init'
I think this is occurring because both Dev C++ and Code::Blocks install MinGW.
I have tried to fix this without success.
I do not want to uninstall Dev C++ because I have some old projects with that IDE.
If someone can help me fix this then please do...
(http://silentheroproductions.com/images/Global_Compiler_Settings.gif)
JeZ+Lee
SLNTHERO@aol.com
www.SilentHeroProductions.com (http://www.SilentHeroProductions.com)
-
I think this is occurring because both Dev C++ and Code::Blocks install MinGW.
I have tried to fix this without success.
I do not want to uninstall Dev C++ because I have some old projects with that IDE.
If someone can help me fix this then please do...
The rules I follow, to have multiple MinGW installs work.
1. DO NOT have any mingw installation on drive root like C:\MinGW
2. Do not have any of the mingw installations in the System environment Path variable
3. Copy the correct mingwm10.dll to project folders
4. Do not have Cygwin in the system environment path variable.
Tim S
-
Hi,
I got it working on my own.
When I imported the Dev C++ project into Code::Blocks,
I forgot that it had its own Project Build Options.
Deleted the options pointing to the old Dev C++ MinGW
and everything is working now!
Just remember that Dev C++ project imported to Code::Blocks
has its own "Project Build Options" which may be pointing to the incorrect location of MinGW...
JeZ+Lee
SLNTHERO@aol.com
www.SilentHeroProductions.com