> 
>       i was wondering if FreeBSD had a kind of like DLL capability?
> 
>       i'd like to be able to do something as follows:
> 
>       // ... construct char *fileName
>       moduleHandle = loadCodeModule(fileName);
>       (char *)(*fn char *) myfn; // ii'm pretty sure i screwed that up
>       myfn = getFunctionAddress(moduleHandle, "doSomethignCool");
>       // use fn
>       releaseModule(moduleHandle);

First, a friendly smack for using a WinDoze term (DLL).... "Thwack!"

Second, an answer.

Yes, they are supported...  Take a look at the man page for "dlopen".  I
just had a need to (finally) use dynamically loadable objects in a
program, and they're pretty easy to implement.  (The "dlopen" and related
functions apply to most modern UNIX variants.)

--mike




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to