please tell what is error on my coding?

V

venkatesh

hai ,
i am using turboc++ compiler to run my c program.
i written an program with structure sa foolws

struct s
{
float x;
}y;
when i am accessing the variable x it shows the following error
"floating point not linked"
Please tell what is wrong in my coding?
 
S

Sjouke Burry

venkatesh said:
hai ,
i am using turboc++ compiler to run my c program.
i written an program with structure sa foolws

struct s
{
float x;
}y;
when i am accessing the variable x it shows the following error
"floating point not linked"
Please tell what is wrong in my coding?

There are more compilers(16 bit) producing that effect.
If you do no actual calculation,the linker leaves out the
library ,cure is:
double x;
..
..
..
..
x=x+2.1;
before your print statement.
My compiler was from microsoft C 6.
leaving out float support for printing makes programs much
smaller(for those two compilers).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top