ascchrvalstr's blog

By ascchrvalstr, history, 8 years ago, In English

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

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
8 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

I resubmitted your solution in C++14 and got AC. It seems there was something wrong when judging your previous submission.

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Looks like compiler update with my printf/scanf changes gone wrong or you caught testing machine at the exact moment of compiler update.