Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs
Date: Thu, 6 Jan 2000 11:16:39 -0600 (CST)
From: Mumit Khan <khan@NanoTech.Wisc.EDU>
To: Joost Kraaijeveld <JKraaijeveld@Askesis.nl>
cc: "Cygwin@Sourceware. Cygnus. Com (E-mail)" <cygwin@sourceware.cygnus.com>
Subject: Re: 20.1 with GCC 2.95.2 problem
In-Reply-To: <1F8B49DD9100D31195FC00A0C94989FE0D8A@obelix>
Message-ID: <Pine.HPP.3.96.1000106111454.26216Z-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 28 Dec 1999, Joost Kraaijeveld wrote:

> I have this LGPL class library with an ODBC class library. I am in the
> process of porting it from IBM Visual Age to Cygwin32 with Mumit's GCC
> 2.95.2. For reasons unknown it crashes (it runs OK with VA) . It depends
> on the optimization where it crashes. 
> 
> Can anyone help me with this? I want to know whether it is the compiler
> or me, and in either case a workaround ;-).
> 
> I have a test case at http:/www.askesis.nl , follow the link bugs???. It
> is the smallest example I could make. Just unzip it in a directory and
> type make. Than watch it crash. 
> 

This code needs thread-safe C++ runtime, and Cygwin gcc currently lacks
that. Even if you build a thread-safe cygwin, it may not work until the
C++ runtime library is built using pthreads. Unfortunately, the pthreads
implementation in Cygwin/winsup is not mature enough to build thread
safe C++ runtime yet, but that's something I'm going to work on soon.

It does work under Mingw when you -mthreads to compile and link (which
links in the thread-safe C++ runtime).

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

