home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11665 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.3 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!rutgers!fdurt1.fdu.edu!wisdom.bubble.org!chsdip!chsdip!groo
  2. From: groo@chsdip.wisdom.bubble.org (Bill Squier)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Need help linking math library in makefile.
  5. Message-ID: <DyCpr*fY0@chsdip.wisdom.bubble.org>
  6. Date: 26 Jul 92 12:24:55 GMT
  7. References: <14q1dkINNob2@darkstar.UCSC.EDU>
  8. Organization: Dragonsoft Development
  9. Lines: 27
  10. X-Newsreader: Arn V1.00 beta rel2
  11.  
  12. In article <14q1dkINNob2@darkstar.UCSC.EDU>, Brian Matthew Aljian writes:
  13.  
  14. > I'm having a problem getting my floating point code to work when I use a
  15. > makefile to compile/link it.  For example, here's a little program (call it
  16. > "prog1.c"):
  17. >
  18. > [...code deleted...]
  19. > But, if I use the following makefile to compile and link it (formatted to make
  20. > it easier to read):
  21. >      prog1 : prog1.o
  22. >         blink FROM lib:c.o+prog1.o TO prog1 LIB LIB:lc.lib+LIB:amiga.lib+
  23. >                                             LIB:lcm.lib
  24.  
  25. Include LIB:lcm.lib _before_ LIB:lc.lib in your link line.
  26.  
  27. eg,
  28.  
  29.     blink FROM lib:c.o+prog1.o TO prog1 LIB LIB:lcm.lib+LIB:lc.lib+\
  30. LIB:amiga.lib
  31.  
  32.  
  33. ----------------------------------------------------------------------
  34. "Stimpy, sometimes your wealth of ignorance astounds me." -ren hoek
  35. Bill Squier (groo@chsdip.wisdom.bubble.org) MetaMail capable
  36.