X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4C1A7E5D.4070801@gmail.com> Date: Thu, 17 Jun 2010 20:58:21 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: C++ app segfaults in libstdc++ References: <4C198B44 DOT 6040803 AT cwilson DOT fastmail DOT fm> <4C1A11EF DOT 9000405 AT gmail DOT com> <4C1A2829 DOT 3090602 AT gmail DOT com> <4C1A2BBA DOT 6080805 AT cwilson DOT fastmail DOT fm> <1276788219 DOT 11505 DOT 1380590885 AT webmail DOT messagingengine DOT com> In-Reply-To: <1276788219.11505.1380590885@webmail.messagingengine.com> Content-Type: text/plain; charset=ISO-8859-1 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 On 17/06/2010 16:23, Charles Wilson wrote: > As expected, this didn't work. But...the imports and exports are NOT > what I expected, so I'm a little confused: > Err, what? (a) why is this DLL exporting modexc stuff, when it is marked > dllimport in this context? (b) why is this DLL exporting std::exception > stuff? Looks like an e-a-s bug causing linked-in __imp_ symbols to get re-exported. That's not supposed to happen, but if you remove e-a-s (and add the standard dllimport/dllexport macro dance in the module .h and .cpp files) you get more sensible looking exports. cheers, DaveK -- 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