Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
X-pair-Authenticated: 24.126.76.52
Message-ID: <41E53D86.2070605@kegel.com>
Date: Wed, 12 Jan 2005 07:08:54 -0800
From: Dan Kegel <dank@kegel.com>
User-Agent: Mozilla/4.0 (compatible;MSIE 5.5; Windows 98)
MIME-Version: 1.0
To: Rainer Hochreiter <rainer@hochreiter.at>
CC: cygwin@cygwin.com, crossgcc@sources.redhat.com
Subject: Re: c++ exceptions in shared library results in crash
References: <32235.193.16.155.145.1105531282.squirrel@193.16.155.145>
In-Reply-To: <32235.193.16.155.145.1105531282.squirrel@193.16.155.145>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Rainer Hochreiter wrote:
> now my problem:
> i created a main program and a shared library, both written in c++, where
> the source is parially taken from the "c++ dlopen mini howto".
> 
> find the sources in the attachments!
> 
> throwing an exception in the shared library results in a core dump of the
> binary executable - but only for the cross-compiled version!
> 
> the native linux and cygwin compiled versions work.
> so, could someone give me a hint, what's wrong with my cross-compiler?
> 
> my cross-compiler (verson 3.2.3) runs under linux and creates cygwin
> executables.

Where did you get your cross-compiler?  It may have been poorly built.
Alternately, maybe it's simply mismatched with the native Cygwin
compiler; you might try using the same version of gcc as Cygwin uses.
- Dan

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

