Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uakari.primate.wisc.edu!sdd.hp.com!decwrl!uunet!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga.tech Subject: Re: SAS/C 5.10 and amiga.lib - Help! Keywords: SAS C amiga.lib LIBRARIES Message-ID: <481@cbmger.UUCP> Date: 8 Oct 90 10:18:43 GMT References: <6697@sugar.hackercorp.com> Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 18 In article joseph@valnet.UUCP (Joseph P. Hillenburg) writes: >How DO you call C routines from BASIC? If you mean functions that are part of a normal Amiga runtime library, then you just need to build a .bmap file and use the same mechanism as for other system function calls. (Look at the manual and into the prog basicdemos/ConvertFD for details of building a .bmap file.) But I'm afraid you speak about amiga.lib which is a link library. I see no easy way to access this. Hard way would be, take SAS/C 5.10, use library creation feature, make up functions for every function you want to include from amiga.lib, compile this to a library and procede like above. (Has anybody done this already?) I can't guess about timing penalties of such procedure. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk