www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Fri, 21 Aug 2009 16:36:47 -0400 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Defining DLL entry points |
Message-ID: | <20090821203647.GD15033@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <25081386 DOT post AT talk DOT nabble DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <25081386.post@talk.nabble.com> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Fri, Aug 21, 2009 at 07:54:14AM -0700, mavatar wrote: >I am trying to port a DLL project from MSVC to Eclipse/MinGW. I was >able to build the DLL with Eclipse/MinGW and the resulting shared >library was much larger than the same library built with MSVC. I found >a "MinGW C Linker" option in project properties to "Omit all symbol >information (-s)" after setting this option the DLL file size reduce by >almost 200KB, but it still was >100KB bigger then the MSVC version. > >After inspecting the DLL with the MS "Dependency Walker" utility I >noticed that the DLL produced by MinGW has entry points defined for >every function in the DLL, including those that don't have the >following descriptor before them. > >#define MY_API __declspec(dllexport) > >I would expect that ONLY function that have MY_API before them would be >defined as an entry point, but this is not the case all function are >defined as entry points. How is this possible? > >As a side note I do not provide a *.DEF file to the linker. I tried >this and it did not seem to make a difference. > >Any ideas? Yes: http://mingw.org/ You're in the wrong mailing list. We deal with Cygwin here, not MinGW. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |