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.

Compiler/CC2530: Error[e46] Undefined external error with functions in header files I've included

Part Number: CC2530

Tool/software: TI C/C++ Compiler

main.c looks:

#include <stdio.h>
#include <string.h>


#include "hal_mcu.h"

int main( void )
{
halMcuInit();

return 0;
}

hal_mcu.h is included that has related hal_mcu.c file as part of the project. In hal_mcu.c function halMcuinit(); is declared.

I am unable to debug why IAR shows error "Error[e46]: Undefined external "halMcuInit::?relay" referred in main"

Thanks,

  • In this forum we only support compilers released by TI.  The IAR compiler is not released by TI.  

    That said, I can shed some light.  The function halMcuInit probably comes from a library that is not one of the inputs to the link.

    Thanks and regards,

    -George