Trouble pulling in libm

Andrei Chichak groups at chichak.ca
Fri Jan 14 05:03:08 UTC 2011


Because I was working with sockets and, at the time, trying to get a telnet daemon running.

It is superfluous to this issue, but it shows how to add multiple libraries, since you can never eat just one (cultural reference).

Andrei


On 2011-January-13, at 9:52 PM, Ralf Corsepius wrote:

> On 01/14/2011 05:42 AM, Andrei Chichak wrote:
>> Check the commands that are being sent to gcc and the linker to make sure that the -lm is being passed through properly.
>> 
>> It took me a heck of a long time to figure out exactly where to put the linker commands so that they actually got used. Mine is in my makefile.am and looks like:
>> 
>> init_LDADD = -lm -ltelnetd
> This longs for an explanation: Why do you need libtelnetd?
> 
> Adding -ltelnetd to get a function from -lm doesn't make sense.
> 
> Ralf
> 





More information about the users mailing list