From: "Adam Price" <adam+usenet@pappnase.demon.co.uk>
Subject: Re: compiling a C program under 4.0c
Date: 1999/03/11 [thread overview]
Message-ID: <921220326.11904.0.nnrp-04.c2deb51d@news.demon.co.uk> (raw)
In-Reply-To: 7c927r$kli$1@news.fsu.edu
Stephen W. Hodge wrote in message <7c927r$kli$1@news.fsu.edu>...
>I have some C programs that compiled fine under 3.2 of Digital Unix. When
>we upgraded to 4.0c, they will no longer compile. I get the following error
>message:
>
>ld:
>unresolved:
>pow
>sqrt
>
>The #include <math.h> file is in the program (just as before). The listing
>file shows they are there, but it will NOT compile.
>
>My guess is that the actual binary objects are not loaded on the system.
>
>Is there some product I have failed to load?
>
>Thanks
>Stephen
>shodge@opus.freac.fsu.edu
>
>
These functions used to be in libc but now need to be loaded from libm.
add -lm to your link line to fix.
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 ` Adam Price [this message]
1999-03-11 5:00 ` Jeff Sullivan
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