delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/13/05:22:37

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sun, 13 May 2001 11:22:16 +0200 (W. Europe Daylight Time)
From: Jesper Eskilson <jojo AT virtutech DOT com>
To: Alan Hourihane <alanh AT fairlite DOT demon DOT co DOT uk>
cc: <cygwin AT cygwin DOT com>
Subject: Re: function pointers & DLL's
In-Reply-To: <20010506223012.D861@valinux.com>
Message-ID: <Pine.WNT.4.33.0105131119550.2408-100000@LEIA>
X-X-Sender: jojo AT gorgon DOT vtab DOT com
MIME-Version: 1.0

On Sun, 6 May 2001, Alan Hourihane wrote:

> Everything works fine. But what I'm trying to do is find a way at the linker
> stage that negates me having to make these __declspec statements. Is there
> any way this is possible ?

For VC++ (at least) __declspec(dllimport) is purely optional and never
required. The only this they do is to enable the compiler to skip an
indirection in the jump and generate a slightly more efficient jump.

/Jesper

-------------------------------------------------------------------------
Jesper Eskilson                                         jojo AT virtutech DOT se
Virtutech                                         http://www.virtutech.se
-------------------------------------------------------------------------


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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