VS2013+QT5.7 Warning MSB8004/8027解决方案
程序员文章站
2022-05-22 19:54:58
...
一、编译程序的时候会出现,如下警告:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(357,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
虽然这些知识警告,不影响运行,但是看着很不爽,所以决定消除这个警告。
在【输出目录】中:最后一定要添加上’\’作为结尾。
二、如下警告:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(935,5): warning MSB8027: Two or more files with the name of moc_mymain.cpp will produce outputs to the same location. This can lead to an incorrect build result. The files involved are GeneratedFiles\Debug\moc_mymain.cpp, GeneratedFiles\Release\moc_mymain.cpp.
解决办法:
【对象文件名】改成如图所示即可。