Mail Archives: djgpp/1995/12/03/15:09:12
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 <math.h>. A simple program, such as:
#include <stdio.h>
#include <math.h>
main()
{
printf("%d\n",sin(3.0));
}
produces an error:
"ex2-2.c (.text + 0x24): undefined reference sin"
during compilation. If I use another math function in place of sin, I get
the same error (
except with "sin" in the error statement replaced by the appropriate
function).
I have searched through the file math.h and have found that it has a
statement:
#include <math-68881.h>
in it. However, upon looking through all of my files associated with djgpp,
I am unable
to find math-68881.h. Could there be a *.zip file that I may need to
install? Any
suggestions would be helpful. Thanks.
Todd Hutchinson
- Raw text -