简体   繁体   English

LNK1104:无法打开文件'libboost_date_time-vc110-mt-gd-1_51.lib'; 文件甚至不包含在依赖项或其他lib目录中

[英]LNK1104: cannot open file 'libboost_date_time-vc110-mt-gd-1_51.lib' ; File is not even included in dependencies or additional lib directories

So I have read the answers on thread about this same issue here . 所以,我看了一下这个同样的问题在线程的答案在这里 But no answers could fix my issue. 但是没有答案可以解决我的问题。 I am using Visual Studio 2017 (v141) and so built the lib files with -vc141- . 我正在使用Visual Studio 2017(v141),因此使用-vc141-构建了lib文件。

When I turned on \\verbose for the linker I noticed something was off. 当我为链接器打开\\verbose ,我发现有些问题了。

1>Starting pass 1
1>Processed /DEFAULTLIB:msvcprtd
1>Processed /DEFAULTLIB:libboost_date_time-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:libboost_filesystem-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:libboost_system-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:uuid.lib
1>Processed /DEFAULTLIB:MSVCRT
1>Processed /DEFAULTLIB:OLDNAMES
1>Processed /DEFAULTLIB:MSVCMRT
1>Processed /DEFAULTLIB:MSCOREE
1>Barrage.obj : /DEBUG:FASTLINK is not supported when managed code is present; restarting link with /DEBUG:FULL
1>
1>Invoking LINK.EXE:
1> /ERRORREPORT:PROMPT @C:\Users\oliviefr\AppData\Local\Temp\tmpdc1f49624fae4111864f892383898874.rsp
1> /DEBUG:FORCEFULL
1>
1>Starting pass 1
1>Processed /DEFAULTLIB:msvcprtd
1>Processed /DEFAULTLIB:libboost_date_time-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:libboost_filesystem-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:libboost_system-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:uuid.lib
1>Processed /DEFAULTLIB:MSVCRT
1>Processed /DEFAULTLIB:OLDNAMES
1>Processed /DEFAULTLIB:MSVCMRT
1>Processed /DEFAULTLIB:MSCOREE
1>LINK : MSIL module encountered; incremental linking is disabled for MSIL; performing full link
1>
1>Invoking LINK.EXE:
1> /ERRORREPORT:PROMPT @C:\Users\oliviefr\AppData\Local\Temp\tmpdc1f49624fae4111864f892383898874.rsp /DEBUG:FORCEFULL
1> /incremental:no
1> /nologo
1> /fullbuild
1>
1>Starting pass 1
1>Processed /DEFAULTLIB:msvcprtd
1>Processed /DEFAULTLIB:libboost_date_time-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:libboost_filesystem-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:libboost_system-vc110-mt-gd-1_51.lib
1>Processed /DEFAULTLIB:uuid.lib
1>Processed /DEFAULTLIB:MSVCRT
1>Processed /DEFAULTLIB:OLDNAMES
1>Processed /DEFAULTLIB:MSVCMRT
1>Processed /DEFAULTLIB:MSCOREE
1>
1>Searching libraries
1>    Searching C:\Program Files\MATLAB\R2017a\extern\lib\win64\microsoft\libmat.lib:
1>    Searching C:\Program Files\MATLAB\R2017a\extern\lib\win64\microsoft\libmx.lib:
1>LINK : fatal error LNK1104: cannot open file 'msvcprtd.lib'
1>Done building project "CequeauQuantite.vcxproj" -- FAILED.

What is the Processed /DEFAULTLIB:libboost_date_time-vc110-mt-gd-1_51.lib ? 什么是已Processed /DEFAULTLIB:libboost_date_time-vc110-mt-gd-1_51.lib Why is it being called? 为什么叫它? I am still a beginner with programming and don't understand much of this output. 我仍然是编程的初学者,对这些输出不了解很多。

I can upload images later on (there's an error with imgure right now) showing my properties or I could paste the *.vcxproj file. 我可以稍后上传图片(显示imgure现在有错误)以显示我的属性,也可以粘贴*.vcxproj文件。 Thanks 谢谢

Boost 1.51 is waaaay too old for VS2017. Boost 1.51对于VS2017来说太老了。 It originates from 2012, and was never compiled or tested for use with VS2017. 它起源于2012年,从未经过编译或测试是否可与VS2017一起使用。 Update to the most recent boost library, found here , and go through your normal build process. 更新到最新的Boost库(可在此处找到) ,并进行正常的构建过程。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命错误 LNK1104:无法打开文件“libboost_system-vc110-mt-gd-1_51.lib” - fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_51.lib' 错误 LNK1104 无法打开文件“libboost_filesystem-vc141-mt-gd-1_65_1.lib” - Error LNK1104 cannot open file 'libboost_filesystem-vc141-mt-gd-1_65_1.lib' LNK1104 无法打开文件“libboost_regex-vc90-mt-gd-1_37.lib” - LNK1104 cannot open file 'libboost_regex-vc90-mt-gd-1_37.lib' VS12 Buiding Boost Library致命错误LNK1104:无法打开文件'libboost_system-vc110-mt-gd-1_58.lib' - VS12 Buiding Boost Library fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_58.lib' LNK1104 无法打开文件“libboost_log-vc142-mt-gd-x64-1_72.lib”? - LNK1104 cannot open file 'libboost_log-vc142-mt-gd-x64-1_72.lib'? 致命错误LNK1104:无法打开文件'libboost_regex-vc90-mt-gd-1_42.lib' - fatal error LNK1104: cannot open file 'libboost_regex-vc90-mt-gd-1_42.lib' 致命错误LNK1104:无法打开文件'libboost_system-vc90-mt-gd-1_43.lib' - fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-gd-1_43.lib' 致命错误 LNK1104:无法打开文件“libboost_log-vc141-mt-gd-1_64.lib” - Fatal error LNK1104: cannot open file 'libboost_log-vc141-mt-gd-1_64.lib' Boost c ++ LNK1104无法打开文件'libboost_serialization-vc140-mt-gd-1_62.lib'错误 - Boost c++ LNK1104 cannot open file 'libboost_serialization-vc140-mt-gd-1_62.lib' error 1> LINK:致命错误LNK1104:无法打开文件'libboost_system-vc90-mt-gd-1_36.lib' - 1>LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-gd-1_36.lib'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM