Why did it happen?

Revision en1, by ascchrvalstr, 2016-09-30 14:59:23

My submission on the problem Parse Tree(C++14) failed to compile, and the error message is:

Can't compile file:

C:/Programs/mingw-w64/bin/../lib/gcc/i686-w64-mingw32/6.2.0/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x8c): undefined reference to _MINGW_INSTALL_DEBUG_MATHERR

C:/Programs/mingw-w64/bin/../lib/gcc/i686-w64-mingw32/6.2.0\libstdc++.a(c++locale.o):(.text$_ZSt14__convert_to_vIfEvPKcRT_RSt12_Ios_IostateRKPi+0x6a): undefined reference to __mingw_strtof

C:/Programs/mingw-w64/bin/../lib/gcc/i686-w64-mingw32/6.2.0\libstdc++.a(c++locale.o):(.text$_ZSt14__convert_to_vIdEvPKcRT_RSt12_Ios_IostateRKPi+0x6a): undefined reference to __mingw_strtod

collect2.exe: error: ld returned 1 exit status

But when I was using C++11, there was no problem. My code is here:

https://gist.github.com/ascchrvalstr/d2c60d0cf2567a929b8a4499cef00b49

Tags compilation error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ascchrvalstr 2016-09-30 14:59:23 952 Initial revision (published)