Include paths not updating

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Include paths not updating

跳至解决方案
954 次查看
michaelsthomas
Contributor I

I'm using KDS 3.0 and having a problem building my project due to paths not being updated.

104930_104930.pngIncludePath.png

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?

标签 (1)
0 项奖励
回复
1 解答
743 次查看
liborukropec
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
744 次查看
liborukropec
NXP Employee
NXP Employee

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

0 项奖励
回复
743 次查看
michaelsthomas
Contributor I

This has cleared up the problem!  Thank you!

0 项奖励
回复