Did you -lm when linking?

gcc blah.c -lm -o blah

On Wed, 28 Aug 2002 08:17, Amanda Wynne wrote:
> I'm writing some C code for a project. I'm using djgpp on my windoze box at
> work, and gcc on mdk8.2 linux at home. Yesterday, in djgpp, I added some
> math routines which use "log", "exp", and "pow". #include <math.h> and it
> works fine. Took it home on a floppy and tried to do a make with gcc, and
> it says my above math functions aren't declared. I've got math.h in
> /usr/include, along with the other header files I'm using
> <stdio.h><stdlib.h><string.h><ctype.h>. Does gcc have these functions
> declared somewhere else?
>
> Amanda

-- 
Regards,
Ian Su
SIRCA (Securities Industry Research Centre of Asia-Pacific)
Tel: 8374-5078 Email: <[EMAIL PROTECTED]>
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to