home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!sdoran
- From: sdoran@sam.ksu.ksu.edu (Steven Marcotte)
- Newsgroups: comp.os.msdos.programmer
- Subject: Re: Can't link in math libs in djgpp
- Date: 20 Aug 1992 19:16:56 -0500
- Organization: Kansas State University
- Lines: 27
- Sender: sdoran@sam.ksu.ksu.edu (Steven Marcotte)
- Distribution: world
- Message-ID: <171cloINNnkp@sam.ksu.ksu.edu>
- References: <glen.88.714352100@wench.ece.jcu.edu.au>
- NNTP-Posting-Host: sam.ksu.ksu.edu
-
-
-
- > I've installed all the djgpp distribution files in my djgpp directory, but
- >when I try to use a maths function the error is as follows:
- >
- >test.o: Undefined symbol _tan referenced from text segment
- >
- > I have all the set vars in my autoexec bat and a simple "Hello World"
- >program works, so <stdio.h> is OK. By the way I _am_ using <math.h>. 8-}
- >
- > Any ideas?
-
-
- If it is anything like the unix version, which it should be, you must
- specifically tell it to like the math library I believe it is something
- like:
-
- cc <filename> -lm
- ----
-
- That should do it.
-
- Steven Marcotte
- sdoran@matt.ksu.ksu.edu
-
- ---
- No SIG to speak of
-