From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13712 invoked by alias); 8 Jan 2013 16:13:06 -0000 Received: (qmail 13694 invoked by uid 22791); 8 Jan 2013 16:13:03 -0000 X-SWARE-Spam-Status: No, hits=-3.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_RW X-Spam-Check-By: sourceware.org Received: from mail-la0-f51.google.com (HELO mail-la0-f51.google.com) (209.85.215.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Jan 2013 16:12:53 +0000 Received: by mail-la0-f51.google.com with SMTP id fj20so650527lab.24 for ; Tue, 08 Jan 2013 08:12:51 -0800 (PST) X-Received: by 10.152.147.103 with SMTP id tj7mr63074931lab.54.1357661571403; Tue, 08 Jan 2013 08:12:51 -0800 (PST) Received: from [192.168.178.23] (217-75-21-200.pool.cyberlink.ch. [217.75.21.200]) by mx.google.com with ESMTPS id f2sm6234848lbz.4.2013.01.08.08.12.49 (version=SSLv3 cipher=OTHER); Tue, 08 Jan 2013 08:12:50 -0800 (PST) Message-ID: <50EC4581.1090407@gmail.com> Date: Tue, 08 Jan 2013 16:13:00 -0000 From: Bob Brusa User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: ecos discuss Content-Type: multipart/mixed; boundary="------------090307020007090700030704" X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] linking fails with "_impure pointer" message X-SW-Source: 2013-01/txt/msg00007.txt.bz2 --------------090307020007090700030704 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1179 Hi, woking on a W7(64)bit system, I updated my toolchain with Sourcery CodeBench Lite 2012.09-63. Then I created a library from ecos using these tools and ecos Configuration Tool 3.net (April 25 20:35:09). However, when compiling (within eclipse cdt juno) my little ustl-exercise (see attachment) I get the following log: 16:58:36 **** Rebuild of configuration Debug for project ustl_1 **** Info: Internal Builder is used for build arm-none-eabi-g++ "-IC:\\Projekte\\TDSsw\\libs\\tds_lib_13_install\\include" -O0 -g3 -Wall -c -fmessage-length=0 -o m_1.o "..\\m_1.cxx" arm-none-eabi-g++ -nostdlib "-LC:\\Projekte\\TDSsw\\libs\\tds_lib_13_install\\lib" "-T..\\ustl_1.ld" -Xlinker -Map -Xlinker ustl_1.Map -o ustl_1.elf m_1.o c:/osy/codesourcery/sourcerycodebench_lite_for_arm_eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/lib\libsupc++.a(vterminate.o): In function `__gnu_cxx::__verbose_terminate_handler()': vterminate.cc:(.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x184): undefined reference to `_impure_ptr' collect2.exe: error: ld returned 1 exit status 16:58:37 Build Finished (took 1s.139ms) Does anyone have good advice? Thank you. --------------090307020007090700030704 Content-Type: text/plain; charset=windows-1252; name="m_1.cxx" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="m_1.cxx" Content-length: 227 /* * m_1.cxx * * Created on: 08.01.2013 * Author: rwb */ #include #include #include using namespace ustl; int main(void) { string x = "Dies ist ein String"; cout << x; } --------------090307020007090700030704 Content-Type: text/plain; charset=us-ascii Content-length: 148 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss --------------090307020007090700030704--