Unable to use library functions when using processor expert stationary.

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

Unable to use library functions when using processor expert stationary.

1,685 次查看
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

标签 (1)
标记 (1)
0 项奖励
2 回复数

377 次查看
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 项奖励

377 次查看
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 项奖励