Re: Gcc compile/linker math
> I can't get gcc to link math functions like cos( ) etc. from > usr/include/math.h. | mathcalls.h Box is slink. Any help appreciated. > TIA. Try adding -lm to the end of your gcc line: gcc -O2 -g -Wall -o prog program.c -lm This links your program against libm.a. Chris -- Christopher S.
Gcc compile/linker math
I can't get gcc to link math functions like cos( ) etc. from usr/include/math.h. | mathcalls.h Box is slink. Any help appreciated. TIA.