Article View: comp.sys.amiga.tech
Article #5601Re: SAS/C 5.10 and amiga.lib - Help!
From: John H. Lee
Date: Wed, 03 Oct 1990 18:51
Date: Wed, 03 Oct 1990 18:51
24 lines
1598 bytes
1598 bytes
In article <6697@sugar.hackercorp.com> gordon@sugar.hackercorp.com (Gordon Neissen) writes:
[...program deleted...]
>And this works compiled with SAS/C 5.10 using the commands:
> lc -v add
> blink add.o to add LIB amiga.lib, lc.lib
^^^^^^^^^ ^^^^^^
>
>But when I tried to change it to work with float it fails to link. I get
>an error: "unable to find library amiga.lib". I get the same thing when
>trying to play with strings.
Two things:
1) amiga.lib must follow lc.lib (i.e., LIB lc.lib, amiga.lib)
2) If you use floats, you must also link with a math library, for
instance, lcm.lib. This must precede lc.lib (i.e., LIB lcm.lib,
lc.lib, amiga.lib).
The error arises because lc.lib depends on amiga.lib and blink searches
the libraries in the order you specify.
-------------------------------------------------------------------------------
The DiskDoctor threatens the crew! Next time on AmigaDos: The Next Generation.
John Lee Internet: johnhlee@cs.cornell.edu
The above opinions of those of the user, and not of this machine.
Technical Details
Message-ID:
<46622@cornell.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!cornell!johnhleeReferences:
<6697@sugar.hackercorp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!cornell!johnhlee From: johnhlee@fulla.cs.cornell.edu (John H. Lee) Newsgroups: comp.sys.amiga.tech Subject: Re: SAS/C 5.10 and amiga.lib - Help! Keywords: SAS C amiga.lib LIBRARIES Message-ID: <46622@cornell.UUCP> Date: 3 Oct 90 18:51:24 GMT References: <6697@sugar.hackercorp.com> Sender: nobody@cornell.UUCP Reply-To: johnhlee@cs.cornell.edu (John H. Lee) Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 24