This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Loadable modules
- To: "Maciek Dobrzanski" <macko at scifi dot pl>
- Subject: Re: Loadable modules
- From: Mumit Khan <khan at nanotech dot wisc dot EDU>
- Date: Thu, 23 Sep 1999 12:25:35 -0500
- cc: cygwin at sourceware dot cygnus dot com
"Maciek Dobrzanski" <macko@scifi.pl> writes:
> Hi,
>
> I have written simple program that imports functions from external
> modules (using dlopen() and dlsyms()). Also I have written simple module
> with one function inside that does nothing but printing "It worked".
> Now, I don't now how to compile/link/whatever the module, so that it
> could be loaded into the program.
You need to create a DLL first.
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (download the
dllhelpers package that has examples).
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/misc/ has an
example package (dlopen-example.tar.gz) that shows how to do what you
need to do.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com