www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/03/15:09:12

Date: Sun, 3 Dec 1995 13:47:41 -0500
From: THutchi141 AT aol DOT com
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Cc: THutchi141 AT aol DOT com
Subject: header file <math.h>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019