We’re using CubeMX to generate a .gpdsc file, which VisualGDB 5.5r4 parses to create a Visual Studio project. When the project is compiled, it fails because it finds LwIP #defines that are duplicates of the C++ standard, e.g. ENOMEM. The warning happens because the low-level LwIP header folders are included in the Include Directories list as a result of parsing the .gpdsc file. When the folders are manually removed from the Include Directories list the project compiles OK. This is not ideal: it would be nice if no manual intervention were required.
A proposed solution: the VisualGDB project properties page could contain new list of excluded include directories.
Alternatively, the directories could be excluded from the parse after a line of the following format is seen:
<file category=”header” condition=”” name=”Middlewares\Third_Party\LwIP\src\include\*“/>
When a header line is seen, along with a “*” wildcard at the end, omit all the following header lines with the same parent path.
A partial, example .gpdsc file is attached. Any feedback would be appreciated. Thanks.