From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17385 invoked by alias); 3 May 2003 16:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 17369 invoked by uid 71); 3 May 2003 16:36:00 -0000 Date: Sat, 03 May 2003 16:36:00 -0000 Message-ID: <20030503163600.17368.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "M.W. Hessel" Subject: Re: c++/10601: Mixing C and C++ files Reply-To: "M.W. Hessel" X-SW-Source: 2003-05/txt/msg00206.txt.bz2 List-Id: The following reply was made to PR target/10601; it has been noted by GNATS. From: "M.W. Hessel" To: "Daniel Jacobowitz" Cc: Subject: Re: c++/10601: Mixing C and C++ files Date: Sat, 3 May 2003 18:28:18 +0200 Thanks, problem is solved! ----- Original Message ----- From: "Daniel Jacobowitz" To: Cc: Sent: Friday, May 02, 2003 6:35 PM Subject: Re: c++/10601: Mixing C and C++ files > > On Fri, May 02, 2003 at 09:56:20AM -0000, marwijn.hessel@ict.nl wrote: > > > > >Number: 10601 > > >Category: c++ > > >Synopsis: Mixing C and C++ files > > >Confidential: no > > >Severity: critical > > >Priority: medium > > >Responsible: unassigned > > >State: open > > >Class: sw-bug > > >Submitter-Id: net > > >Arrival-Date: Fri May 02 10:06:00 UTC 2003 > > >Closed-Date: > > >Last-Modified: > > >Originator: M.W. Hessel > > >Release: Power-eabi cross gcc-3.2.2, binutils-2.13.2, > newlib-1.11.0 > > >Organization: > > >Environment: > > Cygwin on a PII platform > > >Description: > > Cross compiling *.c and *.s, for power-eabi, using GCC v3.2.2, running > with Cygwin, it seems to work fine. The generated .ABS file is read by > insight v5.3 (source level debugger), and can be downloaded into the target > (wurz mpc555 board). > > > > When added a *.cpp file to the project, the linker complains about > 'undefined reference to `__gxx_personality_v0''. This can be solved by > adding the '-r' option the de linker commands (according to the GCC user > manual). > > The generated .ABS can not be read by insight v5.3. It seems that the > generated symbol table is not correct. > > You should not be adding -r. You should be linking using g++, which > will bring in the appropriate libraries. > > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer