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 X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Ralf Habacker" , "Cygwin" Subject: RE: function pointers & DLL's Date: Mon, 14 May 2001 18:07:51 +0400 Message-ID: <000a01c0dc7f$434a8b50$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <002c01c0dc78$e6cb4000$6e032bb7@BRAMSCHE> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 > > > > For GCC (at least :-) __declspec(dllimport) is optional for functions but > > is mandatory for variables. The side-effect of the above is, that function > > address is no more static and cannot be used as static initializer, e.g. > > in function dispatch table like > > > That's not right. Paul Sokolvsky has written an ld patch named auto-import > initial for mingw, which is adapted to cygwin. Look into the appended files. > If you like, you can have this patched ld by mail and try it out. > Ehem ... what exactly is not right? If this patch is already included in current Cygwin GCC/binutils - granted, I have not tried it lately. If not - my statement is still correct for the curent GCC. -andrej -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple