From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20316 invoked by alias); 4 Jul 2002 09:18:14 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20281 invoked from network); 4 Jul 2002 09:18:12 -0000 Received: from unknown (HELO asa.co.uk) (193.119.169.33) by sources.redhat.com with SMTP; 4 Jul 2002 09:18:12 -0000 Received: from mailgate.asa.co.uk ([193.119.169.66] helo=bentley.asa.co.uk) by asa.co.uk with esmtp (Exim 2.05 #2) id 17Q2gS-0002tL-00 for gcc-help@gcc.gnu.org; Thu, 4 Jul 2002 10:13:52 +0100 Received: from jamin.bentley.asa.co.uk ([192.168.10.112] helo=there ident=paulb) by bentley.asa.co.uk with smtp (Exim 2.05 #3) id 17Q2gR-0002tI-00 for gcc-help@gcc.gnu.org; Thu, 4 Jul 2002 10:13:51 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Paul Butcher Organization: ASA Ltd. To: gcc-help@gcc.gnu.org Subject: Problem with C++ on gcc 3 Date: Thu, 04 Jul 2002 02:18:00 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-SW-Source: 2002-07/txt/msg00036.txt.bz2 I have a rather basic problem with compiling a simple C++ program, or rather with the final linking using collect2. This is the call made: /opt/experimental/bin/gcc -v -O2 -o CPPTest ../CPPTest.cpp ../CPPTestMain.cpp The following is the verbose output for the final collect2 stage: /opt/experimental/lib/gcc-lib/i486-suse-linux/3.0.1/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o CPPTest /usr/lib/crt1.o /usr/lib/crti.o /opt/experimental/lib/gcc-lib/i486-suse-linux/3.0.1/crtbegin.o -L/opt/experimental/lib/gcc-lib/i486-suse-linux/3.0.1 -L/opt/experimental/lib/gcc-lib/i486-suse-linux/3.0.1/../../.. /tmp/cc3xAK5D.o /tmp/ccq0irtE.o -lgcc -lc -lgcc /opt/experimental/lib/gcc-lib/i486-suse-linux/3.0.1/crtend.o /usr/lib/crtn.o /tmp/ccq0irtE.o: In function `__FRAME_BEGIN__': /tmp/ccq0irtE.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status As you see this is with SuSE7.3 LInux gcc 3.0.1 'experimental' build - but I get the same problem with a cygwin compiled gcc 3.1 on Win9X. The problem occurs with the most minimal C++ class so I presume it's something fundamental I'm doing wrong! (It always worked with gcc 2.95.x) Paul Butcher ALTON, Hants, UK