delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/14/16:59:12

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: math - undefined references
Date: Wed, 14 Oct 1998 13:47:10 -0700
Organization: Alcyone Systems
Lines: 27
Message-ID: <36250DCE.1CE274F8@alcyone.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 981014175218 DOT 10409E-100000 AT is>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.34 i686)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:

> So please post more details, including the exact command line, the
> version of the compiler, etc.  Also try my program, just to be sure
> this
> isn't specific to your program.
> 
> #include <stdio.h>
> #include <stdlib.h>
> #include <math.h>
> 
> int main (int argc, char **argv)
> {
>   return printf ("%f\n", sinf(atoi(argv[1])));
> }

Correct me if I'm wrong, but isn't sinf (and most of the other ...f
functions) non-ANSI?

-- 
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
  San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
          USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
             \
            / Be thine own place, or the world's thy jail.
           / John Donne

- Raw text -


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