Article View: comp.sys.amiga.tech
Article #13944Re: Lattice(tm) __regargs , -rr, lcr.lib/lcmr.lib probs
From: Darren New
Date: Wed, 28 Feb 1990 18:42
Date: Wed, 28 Feb 1990 18:42
14 lines
1269 bytes
1269 bytes
In article <1990Feb28.091642.7789@ccu.umanitoba.ca> umholtm0@ccu.umanitoba.ca (Heston Holtmann) writes: >when i use the __regargs or compile >with the -rr option to override the stack convesion and then link with >the registerized versions of the Lattice libraries i get undefeined >references to @main. You must define a prototype for any function that uses registerized parameters for obvious reasons. A registerized function has a "@" in front instead of an "_" to avoid problems in libraries. Since your sample code has no prototype for main, _main is created (with stdargs) instead of @main. The startup code is looking for @main. Solution: write a prototype for main(). Has anybody had success making libraries with -rb? -- Darren
Technical Details
Message-ID:
<12532@nigel.udel.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!haven!udel!newReferences:
<1990Feb28.091642.7789@ccu.umanitoba.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!haven!udel!new From: new@udel.edu (Darren New) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice(tm) __regargs , -rr, lcr.lib/lcmr.lib probs Keywords: Lattice(tm), lc -rr, __regargs, register parms Message-ID: <12532@nigel.udel.EDU> Date: 28 Feb 90 18:42:22 GMT References: <1990Feb28.091642.7789@ccu.umanitoba.ca> Sender: usenet@udel.EDU Reply-To: new@udel.edu (Darren New) Organization: University of Delaware Lines: 14