How to use standard C header files in codewarrior?

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

How to use standard C header files in codewarrior?

Jump to solution
1,071 Views
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 Kudos
1 Solution
1,047 Views
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

View solution in original post

0 Kudos
3 Replies
1,048 Views
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 Kudos
1,042 Views
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 Kudos
1,033 Views
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 Kudos