From: Jeff Sullivan <jps@zk3.dec.com>
Subject: Re: compiling a C program under 4.0c
Date: 1999/03/11 [thread overview]
Message-ID: <36E82C24.626FA377@zk3.dec.com> (raw)
In-Reply-To: 7c927r$kli$1@news.fsu.edu
I believe that you need to link with the math library.
Add -lm to your compile command, as in the testcase below.
% cc t.c
ld:
Unresolved:
pow
sin
% cc t.c -lm
%
-Jeff
--
Jeff Sullivan | Compaq Computer Corp | mailto:jps@zk3.dec.com
DEC C and C++ | Nashua, NH ZK3-2/X29 | Jeff.Sullivan@compaq.com
next prev parent reply other threads:[~1999-03-11 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-11 5:00 compiling a C program under 4.0c Stephen W. Hodge
1999-03-11 5:00 ` Jeff Sullivan [this message]
1999-03-11 5:00 ` Adam Price
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox