I'm just starting to learn how to program in C++, and I'm having some problems with my compiler. I downloaded Dev C++, but every time I try to compile I get this error message:
[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status
Regardless of how simple the program is. I mean, even printing 'hello world' failed. It's probably a problem with the compiler. The version of Dev C++ is Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC, so I know it includes a compiler. I can't get it to work, though.
I greatly appreciate any piece of advice you can give on how to solve this.
Solution: don't use dev. Dev is outdated, use wxdev instead. I feel sorry for the programmers behind wx, with a great program but overshadowed by an inferior predecessor.
Did you return 1? (I doubt it but it's worth asking)
Yeah I really do feel sorry for you. It should totally work.
Perhaps you deleted a library by accident. That's why I'd suggest you upgrade to wxDev, the new version of dev which is still being maintained, or perhaps VC. I don't know why Code::Blocks won't work, you'll have to ask a true expert.