From: "Michael Schuster (Hd)" Organization: LS f. Elektrische Energieversorgung To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Mon, 4 Dec 1995 09:01:21 MESZ Subject: header file ------- Forwarded Message Follows ------- Date sent: Sun, 3 Dec 1995 13:47:41 -0500 From: THutchi141 AT aol DOT com To: djgpp AT sun DOT soe DOT clarkson DOT edu Copies to: THutchi141 AT aol DOT com Subject: header file >Hi Hi >I am a new user of djgpp. I have downloaded several zip files and >have successfully >compiled several simple C programs. However, I have not been able to >use the include >file . A simple program, such as: >#include ... >"ex2-2.c (.text + 0x24): undefined reference sin" >during compilation. I had the same problem 4 weeks ago when I started with GNU. I think you do the same mistake as I did: You have to call the compiler with "gcc -lm", so that you indicate the Compiler with the -lm ('m' for mathematics) that you use the mathematic libary ('-l' for libary). If you want to use graphics commands instead just compile with '- lgr'. Hope that helps. Schoenen Tag noch! Michi