From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11003 invoked by alias); 2 May 2003 10:06: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 10980 invoked by uid 71); 2 May 2003 10:06:01 -0000 Resent-Date: 2 May 2003 10:06:01 -0000 Resent-Message-ID: <20030502100601.10979.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, marwijn.hessel@ict.nl Received: (qmail 9310 invoked by uid 48); 2 May 2003 09:56:20 -0000 Message-Id: <20030502095620.9309.qmail@sources.redhat.com> Date: Fri, 02 May 2003 10:06:00 -0000 From: marwijn.hessel@ict.nl Reply-To: marwijn.hessel@ict.nl To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10601: Mixing C and C++ files X-SW-Source: 2003-05/txt/msg00115.txt.bz2 List-Id: >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. >How-To-Repeat: See description >Fix: Not known >Release-Note: >Audit-Trail: >Unformatted: