This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI Clang V2.1.3.LTS: _symval implicit declaration

Expert 2650 points

I have a problem, that I can't use _symval with TI Clang and CC26x1 processor. I would like to get a variable from the linker file, but the compiler complains when using the _symval

warning: implicit declaration of function '_symval' is invalid in C99 [-Wimplicit-function-declaration]

Why is this happening? Never had a problem before with C2000 and TM4C series.

JHi

  • Thank you for reporting this issue.  I can reproduce the same behavior.  I filed the entry EXT_EP-11206 to have this investigated.  You are welcome to follow it with that link.

    Please consider this workaround ...

    #include <stdint.h>    /* for uintptr_t */
    
    extern int linker_symbol;
    #define LINKER_SYMBOL ((uintptr_t)&linker_symbol)

    Use LINKER_SYMBOL wherever you currently use _symval(linker_symbol)

    Thanks and regards,

    -George