Linker fails for math functions

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

Linker fails for math functions

843 Views
pgillaspy
Contributor III

Using CD 10.7 on MV56F8000-EVK.

Linker is failing for a missing number of math functions:  undefined : "FARTDIVF64Z", Undefined : "FARTF32_TO_F64", Undefined : "FARTGTF64", Undefined : "FARTLTF64".  I suppose I am missing library. Can someone direct how to resolve?

0 Kudos
4 Replies

824 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Can you tell us the part number of DSC? which tools do you use, Codewarrior for DSP56800E ver8.3 or CodeWarrior for MCU ver11.x? which api function did you call which leads to the error message?

 

BR

XiangJun Rong

 

 

0 Kudos

822 Views
pgillaspy
Contributor III

I am using CodeWarrior 10.7 with DSC Quickstart 2.7.3. If you will notice, all of the unresolved math functions are type conversions.

The source code line:

Valid_3p3V = DIO_ON;

corresponds to linker error: 

Undefined :: "FARTF32_TO_F64" 

which makes no sense since Valid_3p3V is of type DIO_States_t enumeration of which DIO_ON (=1) is a specific enumeration value.

0 Kudos

816 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I have tried the following code with CodeWarrior for MCU ver11.x.

typedef enum WEEK
{
Monday=0,
Thirsday,
Wednesday
};
enum WEEK day;
void main(void)
{
/* Write your local variable definition here */

/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/

/* Write your code here */
day=Thirsday;

for(;;) {}
}

I can compile/link successfully.

Regarding your code, I think it may be related to the variable name characters. Pls try to use standard variable name.

BR

XiangJun Rong

Tags (1)
0 Kudos

797 Views
pgillaspy
Contributor III

I had the following language option for the compiler:  -flag slld  which I thought was necessary in order to use bool data type. But option -dialect c99 is sufficient.

Removing that option eliminated the errors.  Consider this case solved.

0 Kudos