home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8675 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.1 KB

  1. Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!sdoran
  2. From: sdoran@sam.ksu.ksu.edu (Steven Marcotte)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Can't link in math libs in djgpp
  5. Date: 20 Aug 1992 19:16:56 -0500
  6. Organization: Kansas State University
  7. Lines: 27
  8. Sender: sdoran@sam.ksu.ksu.edu (Steven Marcotte)
  9. Distribution: world
  10. Message-ID: <171cloINNnkp@sam.ksu.ksu.edu>
  11. References: <glen.88.714352100@wench.ece.jcu.edu.au>
  12. NNTP-Posting-Host: sam.ksu.ksu.edu
  13.  
  14.  
  15.  
  16. >  I've installed all the djgpp distribution files in my djgpp directory, but 
  17. >when I try to use a maths function the error is as follows:
  18. >
  19. >test.o: Undefined symbol _tan referenced from text segment
  20. >
  21. >  I have all the set vars in my autoexec bat and a simple "Hello World" 
  22. >program works, so <stdio.h> is OK.  By the way I _am_ using <math.h>. 8-}
  23. >
  24. >  Any ideas?
  25.  
  26.  
  27. If it is anything like the unix version, which it should be, you must
  28. specifically tell it to like the math library I believe it is something
  29. like:
  30.  
  31.  cc <filename> -lm
  32.                ----
  33.  
  34. That should do it.
  35.  
  36. Steven Marcotte
  37. sdoran@matt.ksu.ksu.edu
  38.  
  39. ---
  40.   No SIG to speak of
  41.