Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!spool2.mu.edu!news.cs.indiana.edu!msi.umn.edu!umeecs!zip!bagchi From: bagchi@eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.unix.programmer Subject: dynamic linking from libraries Message-ID: Date: 30 Dec 90 19:17:13 GMT Sender: news@zip.eecs.umich.edu Organization: University of Michigan Lines: 22 I'm screwing around with extensions to a language, and am trying to incorporate a robust "escape to C" feature. It seems to me, that the best way to do this short of linking in ALL the C library calls (gack) is to have the program access the various lib*.a files, and at run time extract the needed function, and then call it. Problem - I have no idea how to do this short of some really cheesy system() calls which would produce a temporary executable. I have been told that with SunOS (which I'm using), there is a better way. I'd appreciate advice, source code, anything... -rj -- -------------------------------------------------------------------------------- Ranjan Bagchi - At Large. Well Kinda. | what kind of person bagchi@[eecs | would like to count syllables caen, | just to write haiku? math.lsa].umich.edu | --------------------------------------------------------------------------------