From: | Jonathan Adamczewski |
Date: | 25 Aug 2001 at 14:29:10 |
Subject: | [amiga-c] Help with some SAS/C code |
Am trying to compile irapost.c from the archive ira105_src.lha sourced
from aminet. Originally written for sas/c, I get undefined references
when linking (using gcc -noixemul) for the following -
chkabort
onbreak
stch_l
The forst two look like some sort of program termination handlers and
afaik removing calls to them from the code will cause no
(significant) problems. There is only one call to stch_l in irapost.c and
it would seem somewhat significant
------------
char buffer[BUFFERLENGTH];
void InsertSymbolicLib(char *mnemonic)
{
long call, i=0;
if (buffer[6]=='$') stch_l(&buffer[7],&call);
else call = atoi(&buffer[6]);
------------
(of course, comments in the source code are verbose and detailed... I
wish)
so it seems it's something like
void stch_l(char*, long*);
Although, the weirder thing is that I can't work out where it's getting
this symbol from so that the compile actually works (ie why is this a
linker error and not a compile error - I've looked everywhere I can think
of and can't work out why this compiles...)
Any help greatly appreciated.
jonathan.
Coffee should be black as Hell, strong as death & sweet as love.
Turkish proverb
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here!
http://us.click.yahoo.com/KYe3qC/I56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/