I have created a CONSOLE PROJECT in "wxdevC++ 6.10.1" in C. But when I am trying to compile it the following error is given. What should I do?
[Linker Error] undefined reference to `__cpu_features_init'
I have created a CONSOLE PROJECT in "wxdevC++ 6.10.1" in C. But when I am trying to compile it the following error is given. What should I do?
[Linker Error] undefined reference to `__cpu_features_init'
In less time than you took typing this thread, you could have found it on a search engine.
Quzah
Hope is the first step on the road to disappointment.
Well, thanx for the link but i could not get my answer! Many are in different language...
The posts I saw with that error lacked the proper library or include file. Stdlib.h and string.h were mentioned explicitly.
Another poster stated that fixing a double equal sign (indicating an equality test should be made), with a single assignment operator of just one equal sign, fixed it for him.
Something worth a look, anyway.
Adak
Well thanX!!!!
Anyone plz help me with a definite answer please!
kk, np. change ur IDE or try 2 post ur code. kthxbye ?
Just the simplest console project possible!Code:#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { system("PAUSE"); return 0; }
A simpler version wouldn't include command line arguments, since you don't actually use yours; and a more portable one wouldn't use system("PAUSE");
Quzah.
Hope is the first step on the road to disappointment.
Actually, I believe that's the default code for a new console app source file. Bad idea on the part of the designers, but the OP's statement is true.
What are your compiler options? Have you ever been able to compile programs or is this a new development?Just the simplest console project possible!
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
There's the simplest, portable console application.Code:int main( void ) { return 0; }
Quzah.
Hope is the first step on the road to disappointment.
Indeed. But neither code should be causing that undefined reference.
Do you perhaps have a project open (an Allegro one?), and it's trying to compile that?
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Compiler options are OK!!! but still its giving such msg!!
Any other reply please!
http://beranger.org/index.php?fullarticle=2465
In short, get a new compiler. You could have downloaded a new one and installed it and had it all taken care of, on dial up, in the time you taken with this issue.
Quzah.
Hope is the first step on the road to disappointment.