Compiler Problem

Hi there.

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.

Thanks a million for your help,

-Sebastian
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)
I returned 0. Here's the code, just in case:

1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;

int main()
{
  cout << "Hello World!" << endl;   
  return 0;
}


See: it's impossibly simple.

Anyways, I'll give that other program a shot. I've tried Code::Blocks, and it didn't work either; that's why I thought the program wasn't the issue.

Thanks for your help. I'll let you know how it goes.
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.
OMG THANK YOU SOOOO MUCH!!

The software you recommended worked perfectly, and as if that wasn't good enough, it fixed all the other programs as well!!

Thanks so much for your help. I sincerely appreciate it.

The power of the internet and the willingness of its users to help others never ceases to amaze me. Thank you; really.
I'm glad to be of assistance and I hope people don't use Dev in the future.
Topic archived. No new replies allowed.