Trying to compile a fairly simple c program on my Sun Sparc running Solaris 9 O/S. I have got rid of all compiler errors and warnings, but get the following message:
# gcc BTDC.c
Undefinedfirst referenced
symbol in file
cos /var/tmp/cczK10be.o
sin /var/tmp/cczK10be.o
sqrt /var/tmp/cczK10be.o
typeq /var/tmp/cczK10be.o
degcalc /var/tmp/cczK10be.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
I am obviously writing #include in my program, but it seems the linker is not finding the math functions.
Thanks for any help.
2006-10-14
01:57:37
·
4 answers
·
asked by
colinmeister
2
in
Computers & Internet
➔ Programming & Design