On Tue, 20 Jul 1999, Ken Wilson wrote:
> I am doing some C programming on my recently installed Mandrake 6.0. As far
> as I am aware I have the latest kernel and all the updates. However, I am
> having troubles compiling a small test program with pgcc(gcc) and suspect
> the libraries are missing or improperly linked as I can't use the log()
> function.
log() is defined in the math library. You have to compile with
gcc -lm -o something -whatever-other-flags-you-need yoursource.c
^^^
LLaP
bero
- [expert] Lost C/C++ Libraries Ken Wilson
- Re: [expert] Lost C/C++ Libraries Steven
- Bernhard Rosenkraenzer
