Error in compiling while when we use include files.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error in compiling while when we use include files.

Jump to solution
529 Views
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

Labels (1)
0 Kudos
1 Solution
455 Views
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.

View solution in original post

0 Kudos
2 Replies
456 Views
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 Kudos
455 Views
harisatuluri
Contributor III

Hi Erich thanks for your Reply...

its been solved..

0 Kudos