Hello! Installed Dev-C ++ with all settings and with the default compiler. The compiler is MinGW. Trying to run a simple project like HelloWorld:

#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { system("PAUSE"); return EXIT_SUCCESS; } 

gives the following error:

 [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\Makefile.win [Build Error] [Проект1.exe] Error 1 

Help to understand please!

  • And just g ++ hello.c from the console works? #include <stdio.h> int main () {return puts ("Hi") == EOF; } - avp
  • In general, it turned out that it was already installed in the root of the C mingw disk, and dev-cpp was going with its compiler, and on one forum it was suggested that they somehow interfere with each other ... In general, the way to rigidly ask it I somehow did not find the compiler, so I just renamed the folder with the previously installed mingw in the root of the disk, and everything worked oddly enough. =) - Greyzer

1 answer 1

Very simple: Solution

  • Tried, did not help - Greyzer