Linker fails for math functions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Linker fails for math functions

1,716件の閲覧回数
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 件の賞賛
返信
4 返答(返信)

1,697件の閲覧回数
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 件の賞賛
返信

1,695件の閲覧回数
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 件の賞賛
返信

1,689件の閲覧回数
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

タグ(1)
0 件の賞賛
返信

1,670件の閲覧回数
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 件の賞賛
返信