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

后端 未结 7 1611
情深已故
情深已故 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 00:59

    I got this same error when running cl.exe from the Developer Command Prompt for VS2012 command window. Turned out all I had to do was restart the command prompt by right-clicking on it and choosing Run as administrator.

提交回复
热议问题