Forum: `__cpu_features_init' lösning på problemet!

Forum huvudsida -> Programmering -> `__cpu_features_init' lösning på problemet!

Sidor: 1

Till botten

GregerW 15:24 - 19:e Juni 2009 | Post #1
Medlem
Inlägg: 16


Skicka PM
Hittade på Internet följande lösning.


>> 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


-------------------------
-----------------------------
MVH
std::cout <<"Greger";



Sidor: 1

Forum huvudsida -> Programmering -> `__cpu_features_init' lösning på problemet!
Atom feed

Du får inte posta i den här tråden | Till toppen