Path: utzoo!attcan!utgpu!watmath!watcgl!bmacintyre From: bmacintyre@watcgl.waterloo.edu (Blair MacIntyre) Newsgroups: comp.sys.amiga.tech Subject: Shared library creation question Message-ID: <9698@watcgl.waterloo.edu> Date: 15 May 89 14:01:37 GMT Reply-To: bmacintyre@watcgl.waterloo.edu (Blair MacIntyre) Organization: UofW Computer Graphics Lab Lines: 31 I'm in the process of trying to create a shared disk library. The problem is simple, actually: it doesn't work! :-) My question is this: what shouldn't I be doing from a shared library that I can do from a program that would be calling it? If I link the library object directly with the test programs, they work fine. When I try using the shared lib, things start dying. I'm getting seemingly random errors ... invalid address, F line type opcode ( invalid opcode ), invalid instructions ... I can't really figure it out. I followed it through the interface and it is ending up inside the code, but it is dying somewhere inside ... I am using Manx FFP for the math inside the lib. It seems to work. I am passing in GfxBase, but that isn't relavent (yet! :-) since it isn't in a routine that used any graphics routines. To construct the lib I converted one of my source files to a format usable my mklib and then took the output as a sample and did the rest of the interface.asm and link.asm routines by hand. Anybody have any pointers about where I can start looking? Blair -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-///-= = Blair MacIntyre, bmacintyre@watcgl.{waterloo.edu, UWaterloo.ca} \\\/// = = now appearing at the Computer Graphics Lab, U of Waterloo! \XX/ = = "Don't be mean ... remember, no matter where you go, there you are." BBanzai=