当在VC里编译时,发现这个警告,就是说设置的目录参数不是以反斜杠结束的目录名称,如下:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(368,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.
按上图在$(ProjectDir)bin里改为$(ProjectDir)bin\,就可以了。
解决VC编译警告MSB8004
本文介绍了解决Visual C++编译时出现的MSB8004警告的方法,即如何正确设置OutputDirectory以避免编译器自动添加反斜杠导致的问题,并附带提供了一些相关课程资源链接。
1011

被折叠的 条评论
为什么被折叠?



