Skip to main content
mehmet.karakaya
Associate III
November 20, 2012
Question

how can I get rid of ?

  • November 20, 2012
  • 2 replies
  • 1050 views
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
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 20, 2012
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    mehmet.karakaya
    Associate III
    November 20, 2012
    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 ?