From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1844 invoked by alias); 21 Nov 2006 16:40:47 -0000 Received: (qmail 1836 invoked by uid 22791); 21 Nov 2006 16:40:47 -0000 X-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_FV X-Spam-Check-By: sourceware.org Received: from mail.jenoptik.com (HELO mail.jenoptik.com) (217.17.196.194) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Nov 2006 16:40:39 +0000 Received: from mail.jenoptik.com (localhost [127.0.0.1]) by mail.jenoptik.com (8.13.8/8.13.1) with ESMTP id kALGeRDc001367; Tue, 21 Nov 2006 17:40:28 +0100 Received: from JO-EX01.JENOPTIK.NET ([10.250.1.4]) by mail.jenoptik.com (8.13.8/8.13.1/REC) with ESMTP id kALGeO1H001362; Tue, 21 Nov 2006 17:40:26 +0100 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Subject: AW: undefined reference to '_impure_ptr' again Date: Tue, 21 Nov 2006 16:40:00 -0000 Message-ID: <5A8A17126B73AC4C83968F6C4505E3C505B8EFD6@JO-EX01.JENOPTIK.NET> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: undefined reference to '_impure_ptr' again Thread-Index: AccNiwFaDbWVuacoQ1WfQZoptWYsXAAAB74A From: "Neundorf, Alexander" To: "David Luca" , "ecos-devel" X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on mail-gw.jenoptik.net X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-11/txt/msg00018.txt.bz2 > Von: ecos-devel-owner@ecos.sourceware.org > [mailto:ecos-devel-owner@ecos.sourceware.org]Im Auftrag von David Luca >=20 > Hello again, although I searched the mailing lists for > this error, I couldn't find any solving to this linker > error.=20 >=20 > arm-elf-gcc -fno-builtin -mcpu=3Darm9tdmi -mhard-float > -c -Wall -O -ggdb -I. -Wall > -nostdlib -Imc9328_install/include -O2 > -ffunction-sections -fdata-sections -fno > -rtti -fno-exceptions -fvtable-gc -fno-schedule-insns > -fno-schedule-insns2 -D MO > NCOMPTR=3D0x10000038 -o hello.o hello.cpp > cc1plus: warning: switch '-fvtable-gc' is no longer > supported > echo tools: arm-elf > tools: arm-elf > arm-elf-ld -o hello -Lmc9328_install/lib > -L/opt/ecos/gnutools/arm-elf/lib/gcc/ar > m-elf/4.1.1/fpu > -L/opt/ecos/gnutools/arm-elf/arm-elf/lib/fpu hello.o > -Ttarget.ld > -nostdlib > /opt/ecos/gnutools/arm-elf/arm-elf/lib/fpu/libsupc++.a(vterminate.o): > In function > `__gnu_cxx::__verbose_terminate_handler()': > ../../../../../gcc-4.1.1/libstdc++-v3/libsupc++/vterminate.cc:89: > undefined reference to `_impure_ptr' > make: *** [hello] Error 1 As far as I understand this: the only place where _impure_ptr is used is in= vterminate.cc. The function where it is used is only called when the appli= cation exits, I don't remember exactly, maybe it had even to do with except= ions, not sure. So, if your ecos application exits, you're in deep trouble anyway. Just define some pointer so that the undefined reference goes away, it won'= t be used anyway. We made it just as big as it should be. It contains stuff like FILE pointer or something like this, which anyway ca= n't be correct for ecos since this comes from gcc which doesn't know about = the stuff used in ecos, so it must be host stuff, i.e. irrelevant for the e= cos application. If I'm wrong with this, please let me know. Bye Alex