X-Spam-Check-By: sourceware.org
Message-ID: <4486276E.98651996@dessent.net>
Date: Tue, 06 Jun 2006 18:10:06 -0700
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: exceptions in c++
References: <20060606205747.95119.qmail@web55015.mail.re4.yahoo.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
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

m r wrote:

> Hi: I'm doing my beginnings in Cygwin and cannot solve
> errors of type
> "undefined reference __gxx_personality...
> "undefined reference __gxa_end_catch...
> etc. when compiling with gcc if I use throw or catch.
> I use -fexceptions, and nothing. Can you help me? Thx.

You haven't given nearly enough information.  Provide the exact commands
that you use to compile and link.  Better would be a small testcase that
demonstrates the error.  It is also useful to provide the cygcheck
output as requested at <http://cygwin.com/problems.html>.

As a wild guess, I'd say you're trying to link by invoking gcc instead
of g++.  You need to link with g++ when compiling C++ code as it will
add all the necessary options, flags, and libraries to support C++ code.

Brian

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

