* Pradesh Chanderpaul <[EMAIL PROTECTED]> [000214 06:33] wrote:
> This message was sent from Geocrawler.com by "Pradesh Chanderpaul"
><[EMAIL PROTECTED]>
> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message