delorie.com/archives/browse.cgi | search |
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 AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: exceptions in c++ |
References: | <20060606205747 DOT 95119 DOT qmail AT web55015 DOT mail DOT re4 DOT yahoo DOT com> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
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 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |