www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/23/13:28:10

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199909231725.MAA23116@mercury.xraylith.wisc.edu>
To: "Maciek Dobrzanski" <macko AT scifi DOT pl>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Loadable modules
In-Reply-To: Your message of "Wed, 22 Sep 1999 02:35:29 +0200."
<001a01bf0492$d046cb20$c0019c95 AT SciFi DOT PL>
Date: Thu, 23 Sep 1999 12:25:35 -0500
From: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>

"Maciek Dobrzanski" <macko AT scifi DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019