kenneth er

Link Error for (float)x = (int)j, pls help.

Discussion created by kenneth er on Apr 24, 2006
Latest reply on Apr 25, 2006 by kenneth er
Hi,
I was trying to perform a math function say:
double x;
int y;

x = (double) y * 2.0;

I got errors that say symbol _DSFLOAT in file:*object file* is undefined.

Can anyone help me?

p.s dun worry y is not initialized because in my main code, it is defined. And if you guys think it is necessary, i can show u guys my main code. Just dun want to complicate things up yet.

It will only work when all the variables are of the same type.

T-H-A-N-K Y-O-U

Outcomes