Unable to use library functions when using processor expert stationary.

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

Unable to use library functions when using processor expert stationary.

1,642 Views
shahzor
Contributor I
Hey guys!
I was wondering if any 1 could help me understand why i get an error if i include a standard library header file <math.h> and use the function 'hypot' in my main user module file <PROJECT-NAME.c>. This only happens if i use Processor Expert Stationary. The error is this:

             Link error: Undefined: "Fhypot"
             Referenced in "Fmain" in TUT1.c
   
TUT.mcp is my project name and TUT1.c the main user module.  

However if i use the New Project Wizard, i do not come across any errors if i include the same header and use this function in the main.c file.

- shahzor

Labels (1)
Tags (1)
0 Kudos
2 Replies

334 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
Let me know if you need feedback for this question.
Keep in mind there are restriction with the math library.
Extract of the Targeting_56800E.pdf manual page 81:
 This chapter explains considerations for using C with the DSP56800E processor.
Note that the DSP56800E processor does not support:
• The C++ language
• Standard C trigonometric and algebraic floating-point functions (such as sine, cosine, tangent, and square root)
 
There are some intrinsic functions. Please refer page 198.
And for sure Processor Expert can be used.
 
Regards
Pascal
 
 
0 Kudos

334 Views
jeypi
Contributor I
Hello,
 
Processor expert has a bean with math functions. It's easier to use and develop programs.
 
Best regards,
 
João Paulo.
0 Kudos