home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!umn.edu!harry
- From: harry@atlas.socsci.umn.edu (Kuo-Chen Chang)
- Subject: help -- math functions not defined in GCC2.2.2
- Message-ID: <harry.714889782@puff.socsci.umn.edu>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: puff.socsci.umn.edu
- Organization: University of Minnesota
- Date: Thu, 27 Aug 1992 04:29:42 GMT
- Lines: 23
-
- Hello there. Could anyone give me some hint about what math functions
- were implemented into GCC2.2.2 for Linux. I have a random number
- generator which I have been using for a couple years on both Sun SPARC
- and PC without any problem. But this time, when I tried to recompile
- my applications, the GCC said _exp and _log not defined. These two are
- standard math functions and are defined in math.h. What should I do to
- call these functions? Thanks!
-
- Harry
-
- ps.
- The error messages are:
- uxqbp91.o: Undefined symbol _exp referenced from text segment
- uxqbp91.o: Undefined symbol _log referenced from text segment.
-
- The compiling command line is:
-
- gcc -m486 -lm -o uxqbp uxqbp91.c
-
- The math.h is included in the main program:
-
- #include <math.h>
-
-