Kevin Brammer

Cant use float operations

Discussion created by Kevin Brammer on Mar 28, 2012
Latest reply on Mar 28, 2012 by CrasyCat

Hi there,

 

i got a problem using HC12 and CW 5.9:

 

i want to multiply two floats:

 

float x = 0.1;

float y = 0.2;

float z = 0.3;

 

z = x *y;

 

if i try to run this i get following error: "L1822: Symbol _FMUL in file X:/XXXX/XXX.c.o is undefined".

 

operations like z = x+y; or z = x-y; are also not possible giving an according error.

 

why is this? how can i fix this problem? simple float multiplications should be possible!

 

i already removed the -D__NO_FLOAT__  parameter from the compiler settings. didn´t work. making a new project also doesn´t work, but i cant see a floating point option anywhere in the wizard anyway.

 

Thanks

 

~nano~

Outcomes