How to use standard C header files in codewarrior?

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

How to use standard C header files in codewarrior?

跳至解决方案
2,169 次查看
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,145 次查看
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,146 次查看
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,140 次查看
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,131 次查看
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 项奖励
回复