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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top