Article View: comp.sys.amiga.tech
Article #2303Re: Lattice 5.04 problem
From: Mike (With friends like these, w...
Date: Thu, 23 Nov 1989 03:26
Date: Thu, 23 Nov 1989 03:26
19 lines
1514 bytes
1514 bytes
In article <128264@sun.Eng.Sun.COM> cmcmanis@sun.UUCP (Chuck McManis) writes: <In article <1989Nov22.022406.9843@athena.mit.edu> (Rich Carreiro) writes: <>OK, it compiles fine, but when it begins to link I get: <>Undefined Symbol First Referenced <>@main LIB:lcr.lib < <There is a prototype for main() in the stdlib.h file. Delete it and all <will work as expected. Lattice deleted that for you in 5.04 (ths problem is tagged as being 5.04). Besides which, the problem is that the prototyped main (@main) is missing, not that the unprototyped main (_main) is missing. You can link with both libraries, and that may fix it. Try them in both orders, though. Dropping the -rr compiler flag should also fix the problem. The best solution is to not mix the two forms in the same program. <mike
Technical Details
Message-ID:
<1989Nov23.032623.13429@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!eris.berkeley.edu!mwmReferences:
<1989Nov22.022406.9843@athena.mit.edu> <128264@sun.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!eris.berkeley.edu!mwm From: mwm@eris.berkeley.edu (Mike (With friends like these, who needs hallucinations) Meyer) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice 5.04 problem Message-ID: <1989Nov23.032623.13429@agate.berkeley.edu> Date: 23 Nov 89 03:26:23 GMT References: <1989Nov22.022406.9843@athena.mit.edu> <128264@sun.Eng.Sun.COM> Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Reply-To: mwm@eris.berkeley.edu (Mike (With friends like these, who needs hallucinations) Meyer) Organization: Missionaria Phonibalonica Lines: 19