因此,我已在线程上阅读了有关同一问题here的答案。但是没有答案可以解决我的问题。我正在使用Visual Studio 2017(v141),因此使用-vc141-
构建了lib文件。
当我为链接器打开\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.
Processed /DEFAULTLIB:libboost_date_time-vc110-mt-gd-1_51.lib
是什么?为什么叫它?我仍然是编程的初学者,对这些输出不了解很多。
稍后我可以上传显示我的属性的图像(当前imgure错误)或粘贴*.vcxproj
文件。谢谢
答案 0 :(得分:0)
Boost 1.51对于VS2017来说太老了。它起源于2012年,从未经过编译或测试是否可与VS2017一起使用。更新到最新的Boost库found here,并按照正常的构建过程进行操作。