Help with gcc compiler
Art Haas
cs004@wg.waii.com
Fri Oct 1 00:00:00 GMT 1999
Wanlin Pang wrote:
>
> I am trying to use gcc on my Sun Solaris2.6. When typing
>
> gcc -o test test.c fun.c
>
> the error message is
>
> Undefined first referenced
> symbol in file
> exp /var/tmp/cc0S71Pi2.o
> ld: fatal: Symbol referencing errors. No output written to test
>
ld can't resolve exp() - you need to link in the
math library ...
gcc -o test test.c fun.c -lm
--
###############################
# Art Haas
# (713) 689-2417
###############################
More information about the Gcc-help
mailing list