- Online Community Forums » Installation, Setup & Configuration » Re: Dev-cpp undefined reference to `__cpu_features_init

This thread is locked; no one can reply to it. rss feed Print
Re: Dev-cpp undefined reference to `__cpu_features_init
Chris Adams
Member #7,359
June 2006

>> Hi.when i try to run a project in dev c++ with allegro i give this error:
>> "undefined reference to `__cpu_features_init'"
>> Why?
>> Thanks

This problem seems to happen a lot... And I was very disappointed when I couldn't find a solution using google.

Hopefully this thread will be indexed, and so this problem will not become an issue any more.

All you have to do, is go to Tools->Compiler Options->Directories->Libraries -- And delete all entries (don't bother adding anything back, it won't make a difference)

After this the __cpu_features_init linker error should disappear. I was able to compile with allegro after deleteing the library paths, because these are global paths, and the allegro path is most likely specified in the project. Note you can still compile console applications.

Long story short: You DON'T have to reinstall Dev-C++, and you definatley DON'T have to reformat your computer.

- Chris

Go to: