cancel
Showing results for 
Search instead for 
Did you mean: 

how can I get rid of <undefined reference to `_impure_ptr'> ?

mehmet.karakaya
Associate III
Posted on November 20, 2012 at 19:36

hello forum

I am trying to compile a C program for STM32F4 microcontroller

with Eclipse + yagarto compiler

I get the error;

undefined reference to `_impure_ptr'

there is no function ''impure_ptr'' in whole project

the error pointer points to a line only }

this must be something related to C compiler however I dont know what

how can I get rid of this ?

#eclipse-yagarto
2 REPLIES 2
Posted on November 20, 2012 at 19:58

Isn't this part of the Newlib C library?

What compiler version?

What compiler command line options?

What are you #including ?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mehmet.karakaya
Associate III
Posted on November 20, 2012 at 21:32

hello thanks ,

version txt file

--------------------------------------------

This build of yagarto use the following versions:

binutils: 2.20.1

gcc:      4.5.1

newlib:   1.18.0

gdb:      7.1

(13.08.2010, mifi)

-----------------------------------

#include

 

<stdio.h>

 

#include

 

 

<string.h>

 

moreover the compiler gives undefined reference error to following functions

strncpy , memcpy, memset

Isn't this part of the Newlib C library?

What compiler version?

What compiler command line options?

What are you #including ?