[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: silly gcc problem -- lost my libraries



On Sat, Dec 20, 2003 at 06:39:42AM -0500, michelle wrote:
> I can still compile "hello world", but I'm getting link errors if I call 
> math or file functions (basic stuff like sqrt, fprintf). They've been 
> available so long through the default library path that I don't know where 
> to find them. How do I restore this?

The libc6-dev package, perhaps? Although you shouldn't even be able to
compile "hello world" without this. A transcript of the problem would be
useful.

Remember that you need to link with -lm in order to call mathematical
functions like sqrt().

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: