Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: bono.reversers.net: stefan owned process doing -bs Date: Fri, 23 Jun 2000 23:10:17 +0200 (CEST) From: stefan X-Sender: stefan AT bono DOT reversers DOT net To: Cygwin Mailing List Subject: Re: DLL Data Symbols In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 23 Jun 2000, stefan wrote: > Hi Cygwinners, > > we are going to create some DLL via gcc, dlltool and dllwrap. This seems > to work for functions but not for DATA. > > What kind of modifications do i have to do for both the DLL and the > application to have imported data symbols in my application ? Sorry for this, i just found something in the mailing list archives... We need "__declspec(dllimport|dllexport)" in front of variables. But another question is, if it is possible to link against the dll itself or is it really neccessary to build the apropiate link library via "dlltool --output-lib" ? Maybe it is also possible to create a dll directly by gcc, thus we do not need "dllwrap" and "dlltool --export-all --def" ? Thanks in advance... Stefan. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com