1,105,625 Community Members

Linking Error

Member Avatar
Azurea
Light Poster
38 posts since Oct 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

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.

Member Avatar
VernonDozier
Posting Expert
5,632 posts since Jan 2008
Reputation Points: 2,218 [?]
Q&As Helped to Solve: 768 [?]
Skill Endorsements: 26 [?]
Featured
 
0
 

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.

Member Avatar
Azurea
Light Poster
38 posts since Oct 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

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!

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article