LINK: fatal error LNK 1104: cannot open file 'LIBCMT.lib'

后端 未结 7 1543
情深已故
情深已故 2021-01-08 00:31

Please help, I have spent all day trying to make my c++ app compile.

My project contains one source file: Foo.cpp. Here is its code:

#include 

        
7条回答
  •  攒了一身酷
    2021-01-08 01:02

    Right click on ProjectName (within Solution Explorer) -> Properties -> Linker -> General -> Additional Library Directories and set it like this:

    $(SolutionDir)$(Platform)\$(Configuration)\;$(VCToolsInstallDir)\lib\$(PlatformShortName);$(VCToolsInstallDir)atlmfc\lib\$(PlatformShortName)
    

提交回复
热议问题