delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/01/00:58:37

Message-ID: <B5E044AF4430D311B24D0060089CD8B1023ECC9F@hydmail01.hyd.wilco-int.com>
From: Prashant Ramachandra <rprash AT wilco-int DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: RE: something funny going on
Date: Thu, 1 Feb 2001 11:16:34 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

On Thursday, February 01, 2001 9:06 AM, Nathan Smith
[SMTP:stryyker AT microtech DOT com DOT au] wrote:
| I compile the source for a cross assembler - it has a section v =
| pow((double) x,(double) y)); and early in the source it has
| #include <math.h> but says undefined reference to pow when I
| compile?

Add -lm option when you link it.
--
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

- Raw text -


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