From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4483 invoked by alias); 8 Jan 2013 17:40:59 -0000 Received: (qmail 4426 invoked by uid 22791); 8 Jan 2013 17:40:58 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_RW X-Spam-Check-By: sourceware.org Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com) (209.85.215.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Jan 2013 17:40:52 +0000 Received: by mail-la0-f49.google.com with SMTP id fk20so762711lab.8 for ; Tue, 08 Jan 2013 09:40:50 -0800 (PST) X-Received: by 10.152.125.237 with SMTP id mt13mr62761166lab.45.1357666849262; Tue, 08 Jan 2013 09:40:49 -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 fv12sm24800312lab.12.2013.01.08.09.40.47 (version=SSLv3 cipher=OTHER); Tue, 08 Jan 2013 09:40:48 -0800 (PST) Message-ID: <50EC5A20.10900@gmail.com> Date: Tue, 08 Jan 2013 17:40: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 References: <50EC4581.1090407@gmail.com> In-Reply-To: <50EC4581.1090407@gmail.com> X-Forwarded-Message-Id: <50EC4581.1090407@gmail.com> Content-Type: multipart/mixed; boundary="------------050005030307040707070807" 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] Fwd: [ECOS] linking fails with "_impure pointer" message X-SW-Source: 2013-01/txt/msg00008.txt.bz2 --------------050005030307040707070807 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1605 -------- Original-Nachricht -------- Betreff: [ECOS] linking fails with "_impure pointer" message Datum: Tue, 08 Jan 2013 17:12:49 +0100 Von: Bob Brusa An: ecos discuss 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. ========================================== Ok, meanwhile I found an answer using google ecos _impure_ptr as search term. I simply have to add the line: void *_impure_ptr; to my source and it builds. --------------050005030307040707070807 Content-Type: text/plain; charset=windows-1252; name="m_1.cxx" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="m_1.cxx" Content-length: 228 /* * 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; } --------------050005030307040707070807 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 --------------050005030307040707070807--