Error in compiling while when we use include files.

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

Error in compiling while when we use include files.

跳至解决方案
1,280 次查看
harisatuluri
Contributor III

Hi all,

 

      I am using code warrior 10.2. in this while building the project, i am unable to use the structures defined in other include files in main.c file.

 

It is showing it as error when i am rebuilding.

 

Is there any need to link tool chain paths for this IDE. if yes how should link the gnu tool chain to the project.

please help me to solve this. thanks in advance.

 

regards

hari

标签 (1)
0 项奖励
回复
1 解答
1,206 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

yes, you need to tell the compiler where your header files are.

This depends a little bit for each compiler.

Select the project, then use the menu Project > Properties. Then the settings are in C/C++ Build > Settings.

Below is a screenshot for ARM gcc:

gcc.png

I hope this helps.

PS: MCU10.2 is rathe old. I recommend that you use the latest 10.4 release.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,207 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

yes, you need to tell the compiler where your header files are.

This depends a little bit for each compiler.

Select the project, then use the menu Project > Properties. Then the settings are in C/C++ Build > Settings.

Below is a screenshot for ARM gcc:

gcc.png

I hope this helps.

PS: MCU10.2 is rathe old. I recommend that you use the latest 10.4 release.

0 项奖励
回复
1,206 次查看
harisatuluri
Contributor III

Hi Erich thanks for your Reply...

its been solved..

0 项奖励
回复