I'm using KDS 3.0 and having a problem building my project due to paths not being updated.
Notice the "D4D" directory is in my include path. However, when I compile the project, this path is not included in the search:
15:36:42 **** Build of configuration Debug for project NextGenUIM ****
make all
'Building file: ../Supervisory_Code_Level/MyMain.c'
'Invoking: Cross ARM C Compiler'
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g3
-I"C:/AOSGit/NextGenUIM/Static_Code/System"
-I"C:/AOSGit/NextGenUIM/Static_Code/PDD"
-I"C:/AOSGit/NextGenUIM/Static_Code/IO_Map"
-I"C:\Freescale\KDS_3.0.0\eclipse\ProcessorExpert/lib/Kinetis/pdd/inc"
-I"C:/AOSGit/NextGenUIM/Sources"
-I"C:/AOSGit/NextGenUIM/Generated_Code"
-I"C:/AOSGit/NextGenUIM/Static_Code/Peripherals"
-I"C:/AOSGit/NextGenUIM/Class_Code_Level"
-I"C:/AOSGit/NextGenUIM/Common_Headers"
-I"C:/AOSGit/NextGenUIM/Superclass_Code_Level"
-I"C:/AOSGit/NextGenUIM/Supervisory_Code_Level"
-std=c99 -MMD -MP -MF"Supervisory_Code_Level/MyMain.d" -MT"Supervisory_Code_Level/MyMain.o" -c -o "Supervisory_Code_Level/MyMain.o" "../Supervisory_Code_Level/MyMain.c"
../Supervisory_Code_Level/MyMain.c:20:17: fatal error: d4d.h: No such file or directory
#include "d4d.h"
^
compilation terminated.
make: *** [Supervisory_Code_Level/MyMain.o] Error 1
How do I get KDS to recognize the new include path?
Solved! Go to Solution.
Hello Michael,
it seems that there is long problem in the Eclipse with eclipse variables nesting - see https://bugs.eclipse.org/bugs/show_bug.cgi?id=273705
If you project is located directly in your workspace (is not linked somewhere else), you can change your variable to "${workspace_loc}/${ProjName}/D4D"
Regards,
Libor
Hello Michael,
it seems that there is long problem in the Eclipse with eclipse variables nesting - see https://bugs.eclipse.org/bugs/show_bug.cgi?id=273705
If you project is located directly in your workspace (is not linked somewhere else), you can change your variable to "${workspace_loc}/${ProjName}/D4D"
Regards,
Libor
This has cleared up the problem! Thank you!