Description
Example:
testme.cpp
|- GCS_MAVLink
|-- GCS_MAVLink.h
testme.cpp
#include <GCS_MAVLink.h>
#include <propeller2.h>
"C:/flexprop/bin/flexspin" -2 -l --tabs=8 -D_BAUD=230400 -O2 -Wall --charset=utf8 -I "C:/flexprop/include" -I. "E:/robotseverywhere/navcom2/ardupilot/ardupilot/libraries/testme.cpp"
"C:/flexprop/bin/flexspin" -2 -l --tabs=8 -D_BAUD=230400 -O2 -Wall --charset=utf8 -I "C:/flexprop/include" -I"E:/robotseverywhere/navcom2/ardupilot/ardupilot/libraries/GCS_MAVLink" "E:/robotseverywhere/navcom2/ardupilot/ardupilot/libraries/testme.cpp"
"C:/flexprop/bin/flexspin" -2 -l --tabs=8 -D_BAUD=230400 -O2 -Wall --charset=utf8 -I "C:/flexprop/include" -I"E:/robotseverywhere/navcom2/ardupilot/ardupilot/libraries/GCS_MAVLink/" "E:/robotseverywhere/navcom2/ardupilot/ardupilot/libraries/testme.cpp"
All 3 generate:
error: Preprocessor errors:
E:/robotseverywhere/navcom2/ardupilot/ardupilot/libraries/testme.cpp:1: error: Can't open include file "GCS_MAVLink.h"
#include <GCS_MAVLink.h>
1 error in preprocessor.
Running on Windows
Works on GCC but not here.
Was unable to get any <> includes with -I to work, only defaults, and no subdirectories. We need to get mavgen compiling for the p2, so we're going to have to do at least a couple of layers of directory structures here, ideally without replacing all <> calls with "" and flattening the tree by hand.