Unable to use headers CW IDE v10.5 for MPC56xx

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use headers CW IDE v10.5 for MPC56xx

Jump to solution
216 Views
Contributor I

Hello, I want to use headers such as stdio.h, math.h ... and so on.

 

However, whenever i use headers, errors occured.

 

example errors using math.h - sin fuction :
Link failed.
mingw32-make. *** [project.elf] Error 1
undefined: '_d_dtof' Referenced from 'main' in main_c.obj
undefined: 'sin' Referenced from 'main' in main_c.obj

 

What should i do??

Labels (1)
0 Kudos
1 Solution
13 Views
NXP Employee
NXP Employee

Hello Gregory,

The problem with the undefined routines might be caused by missing EWL/Runtime libraries.

Can you please check if your project properties includes libc* and librt*? (Project Properties -> C/C++ Build -> Settings -> PowerPC Linker/ Input -> Library Files):

You should see two e.g.

.../libc_E200z750_VLE.a

.../librt_E200z750_VLE.a

Stan

View solution in original post

0 Kudos
2 Replies
14 Views
NXP Employee
NXP Employee

Hello Gregory,

The problem with the undefined routines might be caused by missing EWL/Runtime libraries.

Can you please check if your project properties includes libc* and librt*? (Project Properties -> C/C++ Build -> Settings -> PowerPC Linker/ Input -> Library Files):

You should see two e.g.

.../libc_E200z750_VLE.a

.../librt_E200z750_VLE.a

Stan

View solution in original post

0 Kudos
13 Views
Senior Contributor II

Hello,

Thank you for your post, however please consider moving it to the right community place (e.g. CodeWarrior Development Tools ) to get it visible for active members.

For details please see general advice Where to post a Discussion?

Thank you for using Freescale Community.

0 Kudos