This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: linking fails with "_impure pointer" message

-------- 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 <>

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 (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
"-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

In function `__gnu_cxx::__verbose_terminate_handler()': 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: m_1.cxx
Description: Text document

Before posting, please read the FAQ:
and search the list archive:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]