public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] linking fails with "_impure pointer" message
@ 2013-01-08 16:13 Bob Brusa
  2013-01-08 17:40 ` [ECOS] Fwd: " Bob Brusa
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Brusa @ 2013-01-08 16:13 UTC (permalink / raw)
  To: ecos discuss

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

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.

[-- Attachment #2: m_1.cxx --]
[-- Type: text/plain, Size: 227 bytes --]

/*
 * m_1.cxx
 *
 *  Created on: 08.01.2013
 *      Author: rwb
 */
#include<ustl.h>
#include<ustl\ustring.h>
#include<ustl\ofstream.h>

using namespace ustl;

int main(void)
{
	string x = "Dies ist ein String";
	cout << x;
}


[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ECOS] Fwd: [ECOS] linking fails with "_impure pointer" message
  2013-01-08 16:13 [ECOS] linking fails with "_impure pointer" message Bob Brusa
@ 2013-01-08 17:40 ` Bob Brusa
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Brusa @ 2013-01-08 17:40 UTC (permalink / raw)
  To: ecos discuss

[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]

-------- Original-Nachricht --------
Betreff: [ECOS] linking fails with "_impure pointer" message
Datum: Tue, 08 Jan 2013 17:12:49 +0100
Von: Bob Brusa <bob.brusa@gmail.com>
An: ecos discuss <ecos-discuss@ecos.sourceware.org>

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.


[-- Attachment #2: m_1.cxx --]
[-- Type: text/plain, Size: 228 bytes --]

/*
 * m_1.cxx
 *
 *  Created on: 08.01.2013
 *      Author: rwb
 */
#include<ustl.h>
#include<ustl\ustring.h>
#include<ustl\ofstream.h>

using namespace ustl;

int main(void)
{
	string x = "Dies ist ein String";
	cout << x;
}



[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-08 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 16:13 [ECOS] linking fails with "_impure pointer" message Bob Brusa
2013-01-08 17:40 ` [ECOS] Fwd: " Bob Brusa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).