Originally Posted by discer226
i'm just learning C++ and i'm doing the basic program: "HELLO WORLD!".
i am using dev-C++.
heres my problem, i put in the code:
std::cout << "HELLO WORLD!/n";
Then i click compile/run and a message comes up saying:
"[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status"
What does it mean? how do i fix it?
Hm, I can't figure it out either :S (I am a noob, but I get errors trying to compile it to...)
From one noob to another, instead of putting std::cout put
using namespace std;
between your include headers and calling main. That way you can just put cout. Also, I don't know if it makes any difference but instead of /n I put << endl; (all though thats probably because when I found I had time to come back to c++ I had forgotten how to do /n)
Also; instead of just putting "return 0;", if you want to see the output, put
so it waits for you to "press any key to continue". Otherwise it just flashes the command line box and thats it. I used to think it was because of run-time errors... silly me :S
Sorry I can't help you with the linker error, I had one of those before but I don't remember how I fixed it.
I think it may be something todo with the headers you're using, you might need different headers (although I can't see why you would...).