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 sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Sun, 6 May 2001 22:30:12 +0100 From: Alan Hourihane To: cygwin AT cygwin DOT com Subject: function pointers & DLL's Message-ID: <20010506223012.D861@valinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Hi, Wonder if someone can shed some light or offer an alternative way of doing things....Here goes... I've got a DLL which uses about function pointers of the form.... void (*func1)(); void (*func2)(); I can create the DLL and export them and I get the normal references of _func1 _func2 _imp__func1 _imp__func2 So, now in another DLL I've got to do this __declspec(dllimport) void (*func1)(); __declspec(dllimport) void (*func2)(); To get the function pointers into the correct places. 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 ? Thanks. Alan. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple