X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <25081386.post@talk.nabble.com> Date: Fri, 21 Aug 2009 07:54:14 -0700 (PDT) From: mavatar To: cygwin AT cygwin DOT com Subject: Defining DLL entry points MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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? -- View this message in context: http://www.nabble.com/Defining-DLL-entry-points-tp25081386p25081386.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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