home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9174 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!umn.edu!harry
  3. From: harry@atlas.socsci.umn.edu (Kuo-Chen Chang)
  4. Subject: help -- math functions not defined in GCC2.2.2
  5. Message-ID: <harry.714889782@puff.socsci.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: puff.socsci.umn.edu
  8. Organization: University of Minnesota
  9. Date: Thu, 27 Aug 1992 04:29:42 GMT
  10. Lines: 23
  11.  
  12. Hello there.  Could anyone give me some hint about what math functions
  13. were implemented into GCC2.2.2 for Linux.  I have a random number
  14. generator which I have been using for a couple years on both Sun SPARC
  15. and PC without any problem.  But this time, when I tried to recompile
  16. my applications, the GCC said _exp and _log not defined.  These two are
  17. standard math functions and are defined in math.h.  What should I do to
  18. call these functions?  Thanks!
  19.  
  20. Harry
  21.  
  22. ps.
  23. The error messages are:
  24. uxqbp91.o: Undefined symbol _exp referenced from text segment
  25. uxqbp91.o: Undefined symbol _log referenced from text segment.
  26.  
  27. The compiling command line is:
  28.  
  29. gcc -m486 -lm -o uxqbp uxqbp91.c
  30.  
  31. The math.h is included in the main program:
  32.  
  33. #include <math.h>
  34.  
  35.