MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
138 stars 64 forks source link

"CL error D8038: invalid argument" during Plugins build #58

Open cunov opened 7 years ago

cunov commented 7 years ago

I'm using: Windows 10 x64 (w/ May 31st, 2017 update) with VS Community 2013 and Menge v0.9.1.

From Menge v0.9.1, the file pluginMacros.props (w/ numbered lines) is displayed below:

1<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
2<ImportGroup Label="PropertySheets"></ImportGroup>
3<PropertyGroup Label="UserMacros">
4<MengeSrc>$(SolutionDir)..\..\..\src\Menge\</MengeSrc>
5<MengeLib>$(SolutionDir)..\Menge\build\lib</MengeLib>
6<PluginSrc>$(SolutionDir)..\..\..\src\Plugins</PluginSrc>
7</PropertyGroup>
8<PropertyGroup/>
9<ItemDefinitionGroup/>
10<ItemGroup/>
11</Project>

The extra ( \ ) on line 4 was carried over into paths using $(MengeSrc), resulting in paths with ( \\ ). Here is a .txt of the error in VS 13.

[SOLVED] Remove the extra ( \ ). <MengeSrc>$(SolutionDir)..\..\..\src\Menge</MengeSrc>

askunix commented 4 years ago

1>------ 已启动生成: 项目: noexcept, 配置: Debug Win32 ------ 1>pch.cpp 1>cl : 命令行 error D8038: 无效参数“%(PreprocessorDefinitions” 1>已完成生成项目“noexcept.vcxproj”的操作 - 失败。 ========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========