delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/13/02:19:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <45408.193.16.155.145.1105600758.squirrel@193.16.155.145>
In-Reply-To: <41E53D86.2070605@kegel.com>
References: <32235 DOT 193 DOT 16 DOT 155 DOT 145 DOT 1105531282 DOT squirrel AT 193 DOT 16 DOT 155 DOT 145> <41E53D86 DOT 2070605 AT kegel DOT com>
Date: Thu, 13 Jan 2005 08:19:18 +0100 (CET)
Subject: Re: c++ exceptions in shared library results in crash
From: "Rainer Hochreiter" <rainer AT hochreiter DOT at>
To: cygwin AT cygwin DOT com, crossgcc AT sources DOT redhat DOT com
User-Agent: SquirrelMail/1.4.3a-0.f0.9.1.legacy
MIME-Version: 1.0
X-IsSubscribed: yes

> 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.

i built the cross-compiler by my own, but would be pleased if there are
any cross-compilers publically available!

here the gcc versions i use:

[raho AT pcraho linux]$ gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

[raho AT pcraho linux]$ /opt/cygwin-cross-gcc/i686-pc-cygwin/bin/gcc --version
gcc (GCC) 3.2.3

[raho AT pcraho linux]$ /opt/cygwin-cross-gcc/bin/i686-pc-cygwin-gcc --version
i686-pc-cygwin-gcc (GCC) 3.2.3

[raho AT cygwin cygwin]$ gcc --version
gcc (GCC_ 3.3.3 (cygwin special)

-- 
rainer hochreiter             | web:    www.hochreiter.at
lilienfelder str. 43          | e-mail: rainer AT hochreiter DOT at
a-3150 wilhelmsburg / austria | mobile: +43 664 2812175


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019