< 返回版块

bell 发表于 2021-09-05 20:46

Clionerror: linking with link.exe failed: exit code: 1112 | = note: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC \Tools\MSVC\14.25.28610\bin\HostX64\x64\link.exe" "/NOLOGO" "/NXCOMPAT" " /LIBPATH:C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows -msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "D:\rust\test\test11\targe t\debug\deps\test11.1inhodm0mguvy78p.rcgu.o" "D:\rust\test\test11\target
\debug\deps\test11.1itxz1f879gxqo0r.rcgu.o" "D:\rust\test\test11\target\d ebug\deps\test11.1nfdhbezxkijr69v.rcgu.o" "D:\rust\test\test11\target\deb ug\deps\test11.1okn7si93kck3d1v.rcgu.o" "D:\rust\test\test11\target\debug \deps\test11.1r7eavti91oymq20.rcgu.o" "D:\rust\test\test11\target\debug\ deps\test11.24nm5lpcn3t54lyd.rcgu.o" "D:\rust\test\test11\target\debug\de ps\test11.2hyws9epzawmgilt.rcgu.o" "D:\rust\test\test11\target\debug\deps \test11.2old9hh0jdnzckpx.rcgu.o" "D:\rust\test\test11\target\debug\deps\ test11.3bc649uegqq66vdn.rcgu.o" "D:\rust\test\test11\target\debug\deps\te st11.3nyjusu4bu7ihnwt.rcgu.o" "D:\rust\test\test11\target\debug\deps\test 11.44jxfqx2w1so8gxa.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11 .47a9u7imyimutge1.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4 9azsbqjuetnb404.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4bk fakiuuxmwqfyp.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4mu1b nojyqp0utjl.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4rszv42 zy3ba1jb2.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4t77rmx77 tcvwir6.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4tr7ij9mclu clpsg.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4xi12smsmm3qs mbh.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.4yye09rafbxycx8 1.rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.56g0yr2v0k1zblp9. rcgu.o" "D:\rust\test\test11\target\debug\deps\test11.yv2gzy9b0ix4k8o.rcg u.o" "D:\rust\test\test11\target\debug\deps\test11.zu1yaj42bq3ogyk.rcgu.o " "/OUT:D:\rust\test\test11\target\debug\deps\test11.exe" "D:\rust\test \test11\target\debug\deps\test11.sic3ibelt8jd29e.rcgu.o" "/OPT:REF,NOICF" " /DEBUG" "/NATVIS:C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc -windows-msvc\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:C:\Users\Administ rator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\li balloc.natvis" "/NATVIS:C:\Users\Administrator\.rustup\toolchains\stable-x8 6_64-pc-windows-msvc\lib\rustlib\etc\libcore.natvis" "/NATVIS:C:\Users\Adm inistrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\et c\libstd.natvis" "/LIBPATH:D:\rust\test\test11\target\debug\deps" "/LIBPA TH:C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc
\lib\rustlib\x86_64-pc-windows-msvc\lib" "./libs/nav-apps.lib" "/WHOLEARCHIVE :./libs/nav-apps.lib" "D:\rust\test\test11\target\debug\deps\liblibc-bc05 adbb061c4c16.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64 -pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd-1feb4ba9912f 83e4.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-wind ows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libpanic_unwind-10caf631bf1 7818d.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-win dows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_demangle-5f5b841e 7dcb5069.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc- windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libhashbrown-886e420424 40a542.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-wi ndows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_std_workspace_al loc-fc3dfd2deda68757.rlib" "C:\Users\Administrator\.rustup\toolchains\stabl e-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libunwind-4 765baa3d9fc6a1b.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86 _64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcfg_if-2af04b 7075550e2b.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-p c-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liblibc-9f4eae3434a19 b51.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windo ws-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc-14b08c3097e998dc.rl ib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msv c\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_std_workspace_core-9c0450 bb353ef0cc.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-p c-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcore-4856f32e5e48b ded.rlib" "C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windo ws-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcompiler_builtins-0f66c8d 6b2ebbbc4.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib" = note: Non-UTF-8 output: nav-apps.lib(base64.obj) : \xd5\xd2\xb5\xbd MSIL .ne tmodule \xbb\xf2\xca\xb9\xd3\xc3 /GL \xb1\xe0\xd2\xeb\xb5\xc4\xc4\xa3\xbf\xe9\xa 3\xbb\xd5\xfd\xd4\xda\xca\xb9\xd3\xc3 /LTCG \xd6\xd8\xd0\xc2\xc6\xf4\xb6\xaf\xc1 \xb4\xbd\xd3\xa3\xbb\xbd\xab /LTCG \xcc\xed\xbc\xd3\xb5\xbd\xc1\xb4\xbd\xd3\xc3
xfc\xc1\xee\xd0\xd0\xd2\xd4\xb8\xc4\xbd\xf8\xc1\xb4\xbd\xd3\xc6\xf7\xd0\xd4\xc4
xdc\r\ntest11.4mu1bnojyqp0utjl.rcgu.o : error LNK2005: main \xd2\xd1\xbe\xad\xd4 \xda test11.4mu1bnojyqp0utjl.rcgu.o \xd6\xd0\xb6\xa8\xd2\xe5\r\nnav-apps.lib(lib mysql32.dll) : fatal error LNK1112: \xc4\xa3\xbf\xe9\xbc\xc6\xcb\xe3\xbb\xfa\xc0 \xe0\xd0\xcd\xa1\xb0x86\xa1\xb1\xd3\xeb\xc4\xbf\xb1\xea\xbc\xc6\xcb\xe3\xbb\xfa
xc0\xe0\xd0\xcd\xa1\xb0x64\xa1\xb1\xb3\xe5\xcd\xbb\r\n

求大佬给点提示

评论区

写评论
jonirrings 2021-09-09 11:04

建议msvc工具链安装英语语言包,然后系统语言切到英文。 这种gb和utf混合的报错,以及x64不兼容x86的链接,都是潜在的坑。

作者 bell 2021-09-06 15:02

感谢大佬

--
👇
gwy15: 模块计算机类型“x86”与目标计算机类型“x64”冲突

gwy15 2021-09-05 22:11

模块计算机类型“x86”与目标计算机类型“x64”冲突

1 共 3 条评论, 1 页