scanf : floating point format not linked 
Author Message
 scanf : floating point format not linked

Yes. You need to link to the math library. The way to do this varies from
compiler to compiler. Your source file must have header "math.h", but you
may also have to explicitly link to the required library.

To solve this problem, post your code, in particular the header declaration
part, and name your compiler.

--

Paul Lutus
www.arachnoid.com

Quote:

>I got an error message "scanf : floating point format not linked...
Abnormal
>Program termination" caused by the following section of code...

>printf ("Total transaction? ");
>scanf("\n%f", &d->tot_trans);

>the error only happened after I added that part...
>i can't figure out whats wrong... can anyone give some clue??

>thanks...
>mlim



Tue, 11 Dec 2001 03:00:00 GMT  
 scanf : floating point format not linked


Quote:
> I got an error message "scanf : floating point format not linked... Abnormal
> Program termination" caused by the following section of code...

> printf ("Total transaction? ");
> scanf("\n%f", &d->tot_trans);

> the error only happened after I added that part...
> i can't figure out whats wrong... can anyone give some clue??

> thanks...
> mlim

A floating point emulator has to be linked to your program. You can do that
by just including the following fn in your program void LinkFloat(void) {
float a = 0, *b = &a; a = *b; }

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



Tue, 11 Dec 2001 03:00:00 GMT  
 scanf : floating point format not linked


Quote:
>Yes. You need to link to the math library. The way to do this varies from
>compiler to compiler. Your source file must have header "math.h", but you
>may also have to explicitly link to the required library.

Alternatively read the correct answer in the FAQ. ;-)

--
-----------------------------------------


-----------------------------------------



Tue, 11 Dec 2001 03:00:00 GMT  
 scanf : floating point format not linked
Even better, indeed :)

--

Paul Lutus
www.arachnoid.com

Quote:



>>Yes. You need to link to the math library. The way to do this varies from
>>compiler to compiler. Your source file must have header "math.h", but you
>>may also have to explicitly link to the required library.

>Alternatively read the correct answer in the FAQ. ;-)

>--
>-----------------------------------------


>-----------------------------------------



Tue, 11 Dec 2001 03:00:00 GMT  
 scanf : floating point format not linked
I got an error message "scanf : floating point format not linked... Abnormal
Program termination" caused by the following section of code...

printf ("Total transaction? ");
scanf("\n%f", &d->tot_trans);

the error only happened after I added that part...
i can't figure out whats wrong... can anyone give some clue??

thanks...
mlim



Wed, 12 Dec 2001 03:00:00 GMT  
 scanf : floating point format not linked
OK oK... i got it already... just add sqrt()
:-)

byeeeeeee....

mlim

Quote:
>I got an error message "scanf : floating point format not linked...
Abnormal
>Program termination" caused by the following section of code...

>printf ("Total transaction? ");
>scanf("\n%f", &d->tot_trans);

>the error only happened after I added that part...
>i can't figure out whats wrong... can anyone give some clue??

>thanks...
>mlim



Wed, 12 Dec 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Error !!! scanf : floating point formats not linked

2. Error: scanf: floating point formats not linked

3. BC4: scanf : floating point formats not linked. What does this mean?

4. Error: floating point formats not linked

5. "floating point formats not linked"

6. Floating point format not linked Error

7. TC++: "floating point formats not linked"

8. floating point formats not linked

9. HELP! Floating point formats not linked

10. floating point formats not linked...

11. floating point formats not linked???

12. "Floating point formats not linked" error

 

 
Powered by phpBB® Forum Software