Error in compiling while when we use include files.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error in compiling while when we use include files.

ソリューションへジャンプ
1,216件の閲覧回数
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,142件の閲覧回数
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,143件の閲覧回数
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,142件の閲覧回数
harisatuluri
Contributor III

Hi Erich thanks for your Reply...

its been solved..

0 件の賞賛
返信