On Sat, 10 Jul 1999, Sameer D. Sahasrabuddhe wrote: > > The program I tried was pretty simple - it just has a line that prints the > value of cos(3.14159) I have included <math.h> at the start and its too > easy not to work. But the compiler gives a message saying "in function > main() - undefined reference to function cos" I am really stumped since Hello, Sameer, Did you remember to link the math libraries? Append "-lm" to your compile command. Kartik.