How to use standard C header files in codewarrior?

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

How to use standard C header files in codewarrior?

ソリューションへジャンプ
2,250件の閲覧回数
ramakr02
Contributor III

Dear All,

Following are the details of the hardware used:

1. Development board: EVB9S12XF512E (S12XFSTARTERKITE: S12XF 2-Node Starter Kit)

2. Target Processor: MC9S12XF512MLM

3. IDE: CodeWarrior Classic HCS12(X) 5.2 (Added the missing derivatives)

 

I would like to use standard C header files for string operations for my project such as:

==> stdint.h

edit: I found string.h, stddef.h inside the CW library but could not find "stdint.h".

Is there an option to add these files thru the compiler in CodeWarrior or should I add each header files individually to the project?

 

Any help is much appreciated. @dianabatrlova @RadekS 

 

Thank you.

 

Best regards,

Rohit

 

 

0 件の賞賛
返信
1 解決策
2,226件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Rohit,

 

After the discussion with the CW expert.

The CW for the S12X v5.2 compiler is C90 compatible. The "stdint.h" is C99, so, as I know, CW5.2 doesn’t have an option to support it.

 

Best regards,

Diana

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,227件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Rohit,

 

After the discussion with the CW expert.

The CW for the S12X v5.2 compiler is C90 compatible. The "stdint.h" is C99, so, as I know, CW5.2 doesn’t have an option to support it.

 

Best regards,

Diana

0 件の賞賛
返信
2,221件の閲覧回数
ramakr02
Contributor III

Hello Diana,

 

Thanks for the reply.

 

Can I use a newer IDE which supports my controller to run C99 compatible library? Will that work?

 

Best regards,

Rohit

0 件の賞賛
返信
2,212件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Rohit,

 

Unfortunately, there is no newer IDE for the S12X devices.

I'm very sorry for the inconvenience.

 

Best regards,

Diana

0 件の賞賛
返信