【发布时间】:2015-12-01 10:30:19
【问题描述】:
在我的项目(Visual Studio 2015 Update 1)中尝试使用带有 Visual Codegen 的新 clang 时,出现以下错误:
clang.exe : error : cannot specify -o when generating multiple output files
这只是一个新创建的项目,带有自动生成的 main。
我真的不知道该怎么办。
任何帮助表示赞赏。
【问题讨论】:
-
好吧,
-o选项说明了输出文件的名称。错误信息表明clang认为需要生成多个输出文件;这是为什么呢? -
@DevSolar 天知道为什么clang认为需要输出多个文件。
-
命令行是什么样的?
-
等一下 DevSolar ;)
-
/Yu"stdafx.h" /GS /TP /W3 /Zc:wchar_t /ZI /Gm /Od /sdl /Fd"x64\Debug\vc140.pdb" /Zc:inline /fp :precise /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /errorReport:prompt /WX- /Zc:forScope /RTC1 /GR /Gd /MDd /Fa"x64\Debug\" / nologo /Fo"x64\Debug\" /Fp"x64\Debug\ConsoleApplication2.pch"
标签: c++ visual-studio-2015 clang