Article View: comp.sys.amiga.tech
Article #5598SAS/C 5.10 and amiga.lib - Help!
From: Gordon Neissen
Date: Wed, 03 Oct 1990 14:01
Date: Wed, 03 Oct 1990 14:01
24 lines
1215 bytes
1215 bytes
I am trying to write some routines in C to be called from basic and
am having problems with compiling a few small tests. The only example
I have to work with is as follows:
/* add.c */
void main( Result, x, y )
short *Result, x, y;
{
*Result = x + y;
}
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.
--
| Gordon Niessen | My opinions are none of your business. |
| gordon@sugar.hackercorp.com | "Never underestimate a users stupidity" |
\-------------------------------------------------------------------------/
Technical Details
Message-ID:
<6697@sugar.hackercorp.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!gordonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!gordon From: gordon@sugar.hackercorp.com (Gordon Neissen) Newsgroups: comp.sys.amiga.tech Subject: SAS/C 5.10 and amiga.lib - Help! Keywords: SAS C amiga.lib LIBRARIES Message-ID: <6697@sugar.hackercorp.com> Date: 3 Oct 90 14:01:47 GMT Organization: Sugar Land Unix - Houston Lines: 24