Search code examples
c++dev-c++

Dev -Cpp Compiler Build error


I can't seem to find any thing on how to fix this and i have used Dev-Cpp befor but have never had this problem.I have tried re-installing Dev-Cpp and MinGW but nothing seems to work.

i:\gw\lib\crt2.o(.text+0x8) In function `_mingw_CRTStartup'

[Linker error] undefined reference to `__dyn_tls_init_callback' 

[Linker error] undefined reference to `__cpu_features_init' 

i:\gw\lib\crt2.o(.text+0x8) ld returned 1 exit status 

C:\workspace\cpp\Makefile.win [Build Error]  [Project1.exe] Error 1 

Solution

  • Seems like it can't find the MinGW libraries.

    Click on Tools -> Compiler Options In the directory tab, right click Libraries and change to the MinGW lib directory. In this example, it was C:\MinGW\lib

    This might happen if you uninstall, re-install, or upgrade MinGW.