delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/14/01:35:07

Message-ID: <36243765.4497888F@arctic.net>
From: "Benjamin R. Saylor" <bsaylor AT arctic DOT net>
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: math - undefined references
Lines: 5
Date: Tue, 13 Oct 1998 21:32:21 -0800
NNTP-Posting-Host: 198.51.13.2
X-Complaints-To: support AT newshosting DOT com
X-Trace: news.siscom.net 908343304 198.51.13.2 (Wed, 14 Oct 1998 01:35:04 EDT)
NNTP-Posting-Date: Wed, 14 Oct 1998 01:35:04 EDT
Organization: Newshosting
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

When I compile my program, I get the message "undefined reference to
sinf."  This doesn't happen with sin(), just sinf() (I haven't tried
other *f()'s).  I've tried adding -lm to both the start and the end of
the command line as it says in the FAQ, but it doesn't work!  What's
going on?

- Raw text -


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