Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bonnie.concordia.ca!IRO.UMontreal.CA!matrox!altitude!Chucla!stephane From: stephane@Chucla.CAM.ORG (Stephane Laroche) Newsgroups: comp.sys.amiga.programmer Subject: Re: ARP and DICE - How to link?? Message-ID: Date: 26 Feb 91 01:48:29 GMT References: <1991Feb25.121623.16551@uni-paderborn.de> Organization: INCA Society, Montreal, Canada Lines: 35 In article <1991Feb25.121623.16551@uni-paderborn.de> nick@uni-paderborn.de (Martin Koch) writes: >Hello Amigos, > >I would like to use the ArpFunctions in my C-Program. >I use the DICE-Compiler from Matt Dillon. But i am not >able, to link the a.lib (or also the arp.lib)(both link time >libraries) to the executable. >They are both in the Manxformat. Has anyone solved the Problem? You need to create a new link library that contains the glue code for the ARP function. I've started working on this but I didn't have time to finish... yet. Look at the lattice glue code from the ARP distribution and AztecArp from Olaf Barthel which is on Fish Disk #436. For example, to use the ARP function Puts, assemble the following code (taken from AztecArp) and link it with your C program: _Puts: pea (a6) move.l _ArpBase,a6 move.l 8(sp),a1 jsr -240(a6) move.l (sp)+,a6 rts Someone should really make a complete DICE-compatible arp.lib for us poor folks who are still using AmigaDos 1.3. I know I would if I had the time :-) > //\ Martin Koch --- email to: nick@uni-paderborn.de -- Stephane Laroche | Email: stephane@Chucla.CAM.ORG +1 514 277-8605 | Montreal, Que., Canada