build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x82): In function `.LFB57':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x8e): In function `.LFB57':
: undefined reference to `_Iot_CreateDetachedThread'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x9a): In function `.L26':
: undefined reference to `_IotSemaphore_Wait'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xb8): In function `.L16':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xca): In function `.LBE206':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xec): In function `.LBE209':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xfe): In function `.L15':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x12a): In function `.L25':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x136): In function `.L25':
: undefined reference to `_Iot_CreateDetachedThread'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x15c): In function `.LFB48':
: undefined reference to `_IotClock_TimerDestroy'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x162): In function `.LFB48':
: undefined reference to `_IotSemaphore_Destroy'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x168): In function `.LFB48':
: undefined reference to `_IotSemaphore_Destroy'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x16e): In function `.LFB48':
: undefined reference to `_IotMutex_Destroy'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x1c6): In function `.LBE232':
: undefined reference to `_IotSemaphore_Create'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x1f0): In function `.L51':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x204): In function `.LBE239':
: undefined reference to `_IotSemaphore_Wait'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x22c): In function `.L70':
: undefined reference to `_IotMutex_Create'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x238): In function `.L39':
: undefined reference to `_IotSemaphore_Destroy'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x240): In function `.L42':
: undefined reference to `_IotMutex_Destroy'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x24c): In function `.L43':
: undefined reference to `_IotSemaphore_Destroy'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x276): In function `.L66':
: undefined reference to `_IotSemaphore_Create'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x286): In function `.L66':
: undefined reference to `_IotClock_TimerCreate'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x2a6): In function `.L57':
: undefined reference to `_Iot_CreateDetachedThread'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x2d6): In function `.L48':
: undefined reference to `_IotSemaphore_Wait'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x2f4): In function `.L69':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x310): In function `.LFB65':
: undefined reference to `_IotClock_GetTimeMs'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x356): In function `.L73':
: undefined reference to `_IotClock_TimerArm'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x372): In function `.L79':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x3a4): In function `.LFB59':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x3da): In function `.L84':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x4b6): In function `.LBB271':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x4d8): In function `.LFB63':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x4e0): In function `.LFB63':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x4fe): In function `.LBE281':
: undefined reference to `_IotClock_GetTimeMs'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x52a): In function `.LBE281':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x54c): In function `.L125':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x552): In function `.L125':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x566): In function `.L134':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x56c): In function `.L131':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x592): In function `.LFB49':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x5a6): In function `.L152':
: undefined reference to `_IotSemaphore_TimedWait'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x5ac): In function `.L152':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x5e8): In function `.LBE314':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x5fa): In function `.LBE314':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x628): In function `.LBE316':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x634): In function `.LBE316':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x64a): In function `.L161':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x652): In function `.L161':
: undefined reference to `_IotSemaphore_TimedWait'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x658): In function `.L161':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x670): In function `.L158':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x680): In function `.L158':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x684): In function `.L158':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x6a0): In function `.L144':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x6c0): In function `.L162':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x6d4): In function `.L162':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x6e6): In function `.L159':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x6fc): In function `.L159':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x7be): In function `_IotTaskPool_Destroy':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x7ee): In function `.LBB401':
: undefined reference to `_IotClock_GetTimeMs'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x860): In function `.L208':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x872): In function `.LBE375':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x87c): In function `.L209':
: undefined reference to `_IotSemaphore_Wait'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x8c6): In function `.L230':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x8de): In function `.L207':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x918): In function `.L249':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x934): In function `.LBE432':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x944): In function `.L247':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x964): In function `.L248':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x972): In function `.L239':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x97c): In function `.L239':
: undefined reference to `_IotSemaphore_Post'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x9d0): In function `.LBB448':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0x9de): In function `.LBB448':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xa10): In function `.LBE454':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xa3c): In function `.L272':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xa5a): In function `.L273':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xa5e): In function `.L273':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xa6c): In function `.L273':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xa94): In function `_IotTaskPool_DestroyRecyclableJob':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xaa4): In function `_IotTaskPool_DestroyRecyclableJob':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xac0): In function `.L287':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xae0): In function `.L286':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xae8): In function `.L286':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xb04): In function `_IotTaskPool_RecycleJob':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xb14): In function `.L294':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xb5a): In function `.LBE471':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xb6a): In function `.L292':
: undefined reference to `_IotLog_Generic'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xb72): In function `.L292':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xb7c): In function `.L295':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xbaa): In function `.L313':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xbba): In function `.L304':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xbde): In function `.L311':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xc06): In function `_IotTaskPool_ScheduleDeferred':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xc14): In function `_IotTaskPool_ScheduleDeferred':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xc46): In function `.L318':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xc68): In function `.LBB479':
: undefined reference to `_IotClock_GetTimeMs'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xcc4): In function `.LBE479':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xcd8): In function `.L336':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xd10): In function `.L339':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xd52): In function `_IotTaskPool_GetStatus':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xd60): In function `_IotTaskPool_GetStatus':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xd70): In function `.L350':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xda0): In function `.L354':
: undefined reference to `_IotMutex_Lock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xdae): In function `.L354':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool.o(.text+0xdc8): In function `.L359':
: undefined reference to `_IotMutex_Unlock'
build/default/production/_ext/1360937237/iot_taskpool_static_memory.o(.text+0x14): In function `.L7':
: undefined reference to `_IotStaticMemory_FindFree'
build/default/production/_ext/1360937237/iot_taskpool_static_memory.o(.text+0x32): In function `_IotTaskPool_FreeTaskPool':
: undefined reference to `_IotStaticMemory_ReturnInUse'
build/default/production/_ext/1360937237/iot_taskpool_static_memory.o(.text+0x42): In function `.L18':
: undefined reference to `_IotStaticMemory_FindFree'
build/default/production/_ext/1360937237/iot_taskpool_static_memory.o(.text+0x62): In function `_IotTaskPool_FreeJob':
: undefined reference to `_IotStaticMemory_ReturnInUse'
build/default/production/_ext/1360937237/iot_taskpool_static_memory.o(.text+0x72): In function `.L29':
: undefined reference to `_IotStaticMemory_FindFree'
build/default/production/_ext/1360937237/iot_taskpool_static_memory.o(.text+0x92): In function `_IotTaskPool_FreeTimerEvent':
: undefined reference to `_IotStaticMemory_ReturnInUse'
I get the above errors when I add the .h and .c files to my project. I am using MPLAB X IDE v5.20. I was able to resolve these errors by checking the option “Remove unused sections” under linker options. I know this is not a Microchip forum so I am not sure whether I would get any feedback from here. Just pasting it here since you asked.