Re: gcc with math library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Raphael Fonseca writes:
 > I can compile several programs, but I can not use math libraries.
 > When I try to compile with gcc -otest test.c         it  caused the 
 > following error message:
 > 
 > /home/raphael/tmp/ccUXVGLx.o(.text+0x2c): In function `main':
 > : undefined reference to `sin'
 > collect2: ld returned 1 exit status

See http://www.network-theory.co.uk/docs/gccintro/gccintro_16.html

-- 
regards,
Brian Gough

Network Theory Ltd,
Publishing "An Introduction to GCC" --- http://www.network-theory.co.uk/gcc/


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux