X-Recipient: archive-cygwin@delorie.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 <dave.korn.cygwin@gmail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: C++ app segfaults in libstdc++
References: <4C198B44.6040803@cwilson.fastmail.fm> <4C1A11EF.9000405@gmail.com> <4C1A2829.3090602@gmail.com> <4C1A2BBA.6080805@cwilson.fastmail.fm> <1276788219.11505.1380590885@webmail.messagingengine.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

