Hey guys.

I'm having an issue with my Dev-C++ IDE where whenever I try to compile my code, I get a

" [Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status "

error. Even with simple programs with just sending information to cout I get this error. Something is happening whenever I try to use the #include directive. Anyone know what's up? I guess a hint to this problem would be that this happened after I installed a different IDE.

Hey guys.

I'm having an issue with my Dev-C++ IDE where whenever I try to compile my code, I get a

" [Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status "

error. Even with simple programs with just sending information to cout I get this error. Something is happening whenever I try to use the #include directive. Anyone know what's up? I guess a hint to this problem would be that this happened after I installed a different IDE.

I would guess that you're right that the installation of the second IDE had something to do with it. If you google that error, that seems to be a common theme with most people getting that error.

http://cboard.cprogramming.com/showthread.php?t=86705
http://www.cplusplus.com/forum/beginner/485/

People on other boards have suggested that there is a corruption of the path somewhere and Dev C++ is looking in the wrong directories for the libraries to include. Best/fastest bet I think would be to completely uninstall Dev C++, then reinstall it.

Yep, that fixed my error! Another version of Mingw was installed along with the 2nd IDE without me noticing it. After removing it and re-installing Dev-C++ everything was fine.

Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.