ndefined reference to `__heap_lock'

Comments

6 comments

  • Avatar
    Michael Johnson

    These functions are now supplied in [thumb_]crt0.s - add local definitions

    void __heaplock() {}

    void __heapunlock() {}

    void __printflock() {}

    void __printfunlock() {}

    0
    Comment actions Permalink
  • Avatar
    fasola_ionut

    where in my cod should I add these definitions?

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Any .c file should do it.

    0
    Comment actions Permalink
  • Avatar
    fasola_ionut

    it does not. i have put those definitions before main function in main.c file;  I still got the errors

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Whoops try

    void __heap_lock() {}

    void __heap_unlock() {}

    void __printf_lock() {}

    void __printf_unlock() {}

    0
    Comment actions Permalink
  • Avatar
    fasola_ionut

    Thank you . That worked. 

    0
    Comment actions Permalink

Please sign in to leave a comment.