home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1457 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: night.primate.wisc.edu!relay!oanews!oacs!elemar
  3. From: elemar@oacs (oanews)
  4. Subject: Re: SAS/Lattice C question
  5. Message-ID: <1996Jan19.053510.24005@relay.nswc.navy.mil>
  6. Sender: news@relay.nswc.navy.mil (oanews)
  7. Organization: Naval Surface Warfare Center
  8. References: <4d17sv$146$1@mhadg.production.compuserve.com> <hubey.821500755@pegasus.montclair.edu> <4dlogk$l5g@macondo.dmu.ac.uk>
  9. Date: Fri, 19 Jan 1996 05:35:10 GMT
  10.  
  11. In article <4dlogk$l5g@macondo.dmu.ac.uk> hcm94rp2@dmu.ac.uk (Richard Perrott) writes:
  12. >In article <hubey.821500755@pegasus.montclair.edu>,
  13. >   hubey@pegasus.montclair.edu (H. M. Hubey) wrote:
  14. >>
  15. >>
  16. >>Hello
  17. >>
  18. >>I had bought the Lattice C commpiler years ago but never
  19. >>got a chance to program. I tried a simple pgm from Jamsa's
  20. >>1001 tips (shown below), and the compiler gives an error
  21. >>message. It's asking for a DEFINE value for stub xxxx.
  22. >>I don't understand what it could be asking for. There doesn't
  23. >>seem to be any functions except for those in stdio.h.
  24. >>
  25. >Maybe you didn't linked the program object with the correct object
  26. >module: lc.o etc
  27. >
  28.  
  29. If I remember correctly, his example code used a float.  He probably
  30. forgot to link in the math library.  (something like lc -lm filename.c
  31. to compile and link with the early Lattice compiler. I can't remember
  32. if it is -lm, -Lm or some other combination of upper case or lower case.)
  33.  
  34. Ray
  35.