好友
阅读权限10
听众
最后登录1970-1-1
|
定位重构
发表于 2024-9-7 13:44
FAILED: WinAPI.exe
cmd.exe /C "cd . && "E:\IDE\CLion 2023.3.4\bin\cmake\win\x64\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\WinAPI.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\mt.exe --manifests -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx86\x86\link.exe /nologo CMakeFiles\WinAPI.dir\main.cpp.obj CMakeFiles\WinAPI.dir\inject.cpp.obj CMakeFiles\WinAPI.dir\utils.cpp.obj CMakeFiles\WinAPI.dir\_file.cpp.obj /out:WinAPI.exe /implib:WinAPI.lib /pdb:WinAPI.pdb /version:0.0 /machine:X86 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK Pass 1: command "C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx86\x86\link.exe /nologo CMakeFiles\WinAPI.dir\main.cpp.obj CMakeFiles\WinAPI.dir\inject.cpp.obj CMakeFiles\WinAPI.dir\utils.cpp.obj CMakeFiles\WinAPI.dir\_file.cpp.obj /out:WinAPI.exe /implib:WinAPI.lib /pdb:WinAPI.pdb /version:0.0 /machine:X86 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\WinAPI.dir/intermediate.manifest CMakeFiles\WinAPI.dir/manifest.res" failed (exit code 1120) with the following output:
main.cpp.obj : error LNK2019: 无法解析的外部符号 "public: static signed char * __cdecl FM::_file::file2mem<signed char>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (??$file2mem@C@_file@FM@@SAPACAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),函数 _main 中引用了该符号
WinAPI.exe : fatal error LNK1120: 1 个无法解析的外部命令
ninja: build stopped: subcommand failed.
|
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|