Date: Mon, 14 Feb 2000 12:27:01 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: Pradesh Chanderpaul <pradesh.chanderpaul@iname.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Help me understand dlopen/dlsy Message-ID: <20000214122701.U17536@fw.wintelcom.net> In-Reply-To: <200002141400.GAA29194@www.geocrawler.com>; from archiver@db.geocrawler.com on Mon, Feb 14, 2000 at 06:00:21AM -0800 References: <200002141400.GAA29194@www.geocrawler.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Pradesh Chanderpaul <archiver@db.geocrawler.com> [000214 06:33] wrote: > This message was sent from Geocrawler.com by "Pradesh Chanderpaul" <pradesh.chanderpaul@iname.com> > Be sure to reply to that address. > > Hello All > > I know that this question is more suited to the general > questions mailing group, but I tried, and failed to obtain > a response. So could someone please provide guidance with this > topic. I have searched the mailing lists, man pages and the > net at large without getting a satisfactory understanding. > > Consider the following scenario. > > I need to compile a program consisting of two source files > and a makefile > > file1.c > ------- > #include <stdio.h> > #include <stdlib.h> > #include <dlfcn.h> > > int main() { > void *handle; > void (*myhellofunc)(void); > char *c; > > handle = dlopen(NULL, 1); > c = dlerror(); > > if (c) abort_with_error(c); > > myhellofunc = dlsym(handle, "_helloworld"); try "helloworld" (drop the '_') -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000214122701.U17536>