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