* SUMMARY:Compile errors - ld Unresolved
@ 1997-01-29 14:08 marco
0 siblings, 0 replies; only message in thread
From: marco @ 1997-01-29 14:08 UTC (permalink / raw)
To: tru64-unix-managers
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-01-29 14:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-29 14:08 SUMMARY:Compile errors - ld Unresolved marco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox