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

后端 未结 7 1529
情深已故
情深已故 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:11

    Just to add my experience here, since it may help someone, and it applies to newer VS editions (2017 in my case).

    I was getting a similar error during compiling when I moved my project to a new machine. I finally figured out that one of the projects in my dependencies had spectre mitigation turned on, and the libs with that support are not included by default:

提交回复
热议问题