Hey guys Has anyone tried using gcc or cc on Redhat6.0? Whatever I do, it simply doesnt seem to work. 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 this had worked perfectly on my Redhat5.0 quite a long time back. Please, someone help me - elder bro is already breathing fire down my neck for having such a lousy system. Sameer.
