X-Spam-Check-By: sourceware.org Message-ID: <4486276E.98651996@dessent.net> Date: Tue, 06 Jun 2006 18:10:06 -0700 From: Brian Dessent 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 . 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/