Hello all!
I am developing for an F28335 in C++ and CCS v5.5 under Windows 7 at the moment.I make a heavy use of subdirectories for my code files and include them via include "relative paths"
During my builds I get sometimes errors that confuse me a bit:
================================================================
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -j 8 TaskScheduler/MeasDataSynchronizer/MeasDataSynchronizer.obj
'Building file: ../TaskScheduler/MeasDataSynchronizer/MeasDataSynchronizer.cpp'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --fp_reassoc=off --include_path="C:/ti/ccsv5/tools/compiler/c2000_6.2.0/include" --include_path="<<my project path>>/ACDC_Controller/ObserverPattern/" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2833x/v133/DSP2833x_headers/include" --include_path="C:/ti/controlSUITE/device_support/f2833x/v133/DSP2833x_common/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath/v15c/include" --include_path="C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/include" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --display_error_number --issue_remarks --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="TaskScheduler/MeasDataSynchronizer/MeasDataSynchronizer.pp" --obj_directory="TaskScheduler/MeasDataSynchronizer" "../TaskScheduler/MeasDataSynchronizer/MeasDataSynchronizer.cpp"
"..\TaskScheduler\MeasDataSynchronizer\..\..\ADCController\..\ObserverPattern\AdcMeas\..\..\ADCController\..\GlobalSettings\Controller/ControllerOperationalSettings.h", line 13: fatal error #1965:
cannot open source file
"ControllerOperationalSettingsObserverServer.h"
#include "ControllerOperationalSettingsObserverServer.h"
^
1 catastrophic error detected in the compilation of"../TaskScheduler/MeasDataSynchronizer/MeasDataSynchronizer.cpp".
===================================================================.
The error happens in a file that is in the same subdirectory as the included one (hence I use #include "ControllerOperationalSettingsObserverServer.h"). Both files are part of the eclipse project and not included via an include path option.
I had this problem a bit earlier already with another often used file. When I added this project folder to the project includes (--include_path) the error went away.
However, since this is a project file and not a library I do not want to include everything to the includes.
The folder structure is the following way:
- eclipse project dir
- TaskScheduler
- MeasDataSynchronizer
- MeasDataSynchronizer.h
- MeasDataSynchronizer
- GlobalSettings
- Controller
- Controller ... .h
- Controller
- TaskScheduler
When I look at the compiler output, the last line is confusing to me: why does the path begin with a "../"? What's the base directory to that?
Other than that, I'm just confused why this error pops up and I would like to solve it without playing with --include_path (since all these files are in my eclipse project).
Thanks a lot!