我想編譯Niotso,但是我從源代碼構建時遇到了問題。ld.exe:找不到-lmsvcrt
我想我可能會錯過一些東西很明顯,所以如果有人知道我可能做錯了,請讓我知道
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw3
2/bin/ld.exe: skipping incompatible c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32
/4.8.1/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw3
2/bin/ld.exe: skipping incompatible c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32
/4.8.1/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw3
2/bin/ld.exe: skipping incompatible c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32
/4.8.1/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw3
2/bin/ld.exe: cannot find -lmsvcrt
collect2.exe: error: ld returned 1 exit status
_deps\freetype\CMakeFiles\freetype_shared.dir\build.make:323: recipe for target
'../_dist/windows/freetype.dll' failed
mingw32-make[2]: *** [../_dist/windows/freetype.dll] Error 1
CMakeFiles\Makefile2:77: recipe for target '_deps/freetype/CMakeFiles/freetype_s
hared.dir/all' failed
mingw32-make[1]: [_deps/freetype/CMakeFiles/freetype_shared.dir/all] Error 2
Makefile:74: recipe for target 'all' failed
mingw32-make: [all] Error 2
對我來說,就像你在建立一個32位應用程序,當你只有64位庫可用時。但我猜測。 – john