win10,MinGW14.2编译。
最近升级了编译器,发现用新的编译器编译EasyX程序不通过
编译指令:
-O2
-std=c++11
-I"C:\mingw64\include"
-I"C:\mingw64\x86_64-w64-mingw32\include"
-I"C:\mingw64\lib\gcc\x86_64-w64-mingw32\14.2.0\include"
-I"C:\mingw64\lib\gcc\x86_64-w64-mingw32\14.2.0\include\c++"
-L"C:\mingw64\lib"
-L"C:\mingw64\x86_64-w64-mingw32\lib"
-static-libgcc
错误:
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\mingw64\x86_64-w64-mingw32\lib/libeasyx.a(EasyX.GraphWnd.o):EasyX.GraphWnd.cpp:(.text+0x198c): undefined reference to `__imp___iob_func'
collect2.exe: error: ld returned 1 exit status