computing
  • 10

Solved DEV C++ Compier Just NOT Working :/

  • 10

I have no idea why it’s not working. I thought i may be writing programs with poor syntax or something but even when i run the example programs. It shows errors D: Here’s some example code:

#include <iostream>

using namespace std;

int main (int argc, char *argv[])
{
char quit;

quit = ‘\0’;
while (quit != ‘q’)
{
cout << “Hello ! This is a console app.” << endl;
cout << “To create a console, go to Project Options and select” << endl;
cout << “\’Win32 Console\’.” << endl;
cout << “Press q to quit ” << endl;
cin >> quit;
}

return 0;
}

and these are the errors that go with it.
[Linker error] undefined reference to `__dyn_tls_init_callback’
[Linker error] undefined reference to `__cpu_features_init’
ld returned 1 exit status
C:\Dev-Cpp\Examples\Hello\Makefile.win [Build Error] [Hello.exe] Error 1

If ANYONE can help I’d be very happy.

Thanks, Guys. 🙂

Share

1 Answer

  1. hello,

    i got the same problem, the reason was because i had another mingw instalations in my system. It seems that devc looks for a mingw installation each time it starts.

    The solution: i rename the c:\mingw\ folder and everything start working with the internal devc mingw.

    Cheers!

    • 0