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

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

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

3,678 Views
krude
Contributor I
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
Labels (1)
0 Kudos
2 Replies

519 Views
krude
Contributor I
Thank you! I finally solved the problem. Thanks once more.
0 Kudos

519 Views
CrasyCat
Specialist III

Hello

Apparently you are not linking your application against the appropriate ANSI library.
In order to make sure this works:

   - Create your project using the wizard
   - Make sure you specify you want to use Floating Point arithmetic and select
     the floating point format you wish to use.
  - Add your source code to the application.

This should fix it.

CrasyCat

0 Kudos