how to get log10( double ) linked

how to get log10( double ) linked

Post by Bartlomiej Jarock » Sat, 15 Mar 1997 04:00:00



Hi,

I seem to have a problem with linking log10 function (with g++ 2.7.0
under linux kernel 1.2.13). I guess I didn't install maths library. Can
anyone help me find a cure. Please make it possibly simple I'm no linux
expert :~(.

Thanks,

--
Bartlomiej Jarocki             Medical Technology & Equipment Institute
                                Instytut Techniki i Aparatury Medycznej
                                        ul.Wolnosci 345, Zabrze, Poland

 
 
 

how to get log10( double ) linked

Post by Eric Meij » Sat, 15 Mar 1997 04:00:00


: Hi,

: I seem to have a problem with linking log10 function (with g++ 2.7.0
: under linux kernel 1.2.13). I guess I didn't install maths library. Can
: anyone help me find a cure. Please make it possibly simple I'm no linux
: expert :~(.

When linking, don't forget to add the -lm switch, to indicate you link
the math library

g++ -o bla bla.o bleh.o ... -lm

Eric Meijer

 
 
 

how to get log10( double ) linked

Post by Bartlomiej Jarock » Sat, 15 Mar 1997 04:00:00


Quote:>In gnu.g++.help you write:

>>I seem to have a problem with linking log10 function (with g++ 2.7.0
>>under linux kernel 1.2.13). I guess I didn't install maths library. Can
>>anyone help me find a cure. Please make it possibly simple I'm no linux
>>expert :~(.

>        Tried 'g++ -o x x.c -lm' yet?
>        Martin

Yeah it worked, stupid me ;) lot of thanks,

Bartek

 
 
 

1. two modem; two ppp link to internet and double the performance

--
Hi!
        Is it possible to have two ppp link to internet?
        and double the performance?

        Is yes, what can I use to update the routing table dynamically?
        routed or gated? which one should I use?

        Thank you!

===================================================
 Thomas Chan

===================================================

2. Dlink Dhn-520 Home Phoneline Adapter in Linux

3. double linked libaries ?

4. fping _s_l_o_w_d_o_w_n_

5. Double Linked List (O'reilly's Algorithms)

6. fsync/fdatasync performance problems

7. Using two Ethernet links to double throughput

8. installing php as a dyn module -- problem with apxs

9. CPIO double restore erases linked files

10. My Mac gets a double name

11. Getting double lines out of a file

12. Trouble finding C's math functions: log10(), sin, etc...

13. float vs double vs double float