From: marco () gore ! afep ! cornell ! edu
To: tru64-unix-managers
Subject: SUMMARY:Compile errors - ld Unresolved
Date: Wed, 29 Jan 1997 14:08:50 +0000 [thread overview]
Message-ID: <96076450423499.tru64-unix-managers.marc@archive.invalid> (raw)
Original:
>Hello managers,
> I get the following error when I try to compile a simple c program:
>
>gore.afep.cornell.edu 8:33am> gcc junk.c
>/usr/bin/ld:
>Unresolved:
>exp
>collect2: ld returned 1 exit status
>
>
>the exp above is the math function "e to the x". I have tried other math
>functions and they exhibit the same behavior. I have the math library header
>define,i.e. #include <math.h>
>
>I found a question similar to this in the archive but there was no summary. Ay
>help would be greatly appreciated. Thank you.
Many responded quickly. The answer was simple. Use:
gcc file.c -lm
Thanks to :
"Sean O'Connell" <sto@stat.Duke.EDU>
Olle Eriksson <olle@cb.uu.se>
Baranyai Pal <bp@vma.bme.hu>
Gyula Szokoly <szgyula@skysrv.Pha.Jhu.EDU>
"Eric Z. Ayers" <eric@compgen.com>
Hans Ranke <Hans.Ranke@Regent.E-Technik.TU-Muenchen.DE>
reply other threads:[~1997-01-29 14:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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