We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Please help me with the following linker problems:
Errors:
.\Flash\Blinky.axf: Error: L6218E: Undefined symbol EplTimerHighReskDeleteTimer (referred from epldllk.o). .\Flash\Blinky.axf: Error: L6218E: Undefined symbol EplTimerHighReskInit (referred from epldllk.o). .\Flash\Blinky.axf: Error: L6218E: Undefined symbol EplTimerHighReskModifyTimerNs (referred from epldllk.o).
Header code for epldllk:
#include "EplDllk.h" #include "EplDllkCal.h" #include "EplEventk.h" #include "EplNmtk.h" #include "edrv.h" #include "Benchmark.h" #if ((EPL_MODULE_INTEGRATION & EPL_MODULE_PDOK) != 0) #include "EplPdok.h" #endif #if ((EPL_MODULE_INTEGRATION & EPL_MODULE_VETH) != 0) #include "VirtualEthernet.h" #endif //#if EPL_TIMER_USE_HIGHRES != FALSE #include "EplTimerHighResk.h" //#endif
The EplTimerHighResk.h functions:
#include "EplTimer.h" #ifndef _EPLTIMERHIGHRESK_H_ #define _EPLTIMERHIGHRESK_H_ //--------------------------------------------------------------------------- // function prototypes //--------------------------------------------------------------------------- tEplKernel PUBLIC EplTimerHighReskInit(void); tEplKernel PUBLIC EplTimerHighReskAddInstance(void); tEplKernel PUBLIC EplTimerHighReskDelInstance(void); tEplKernel PUBLIC EplTimerHighReskSetTimerNs(tEplTimerHdl* pTimerHdl_p, unsigned long long ullTimeNs_p, tEplTimerkCallback pfnCallback_p, unsigned long ulArgument_p, BOOL fContinuously_p); tEplKernel PUBLIC EplTimerHighReskModifyTimerNs(tEplTimerHdl* pTimerHdl_p, unsigned long long ullTimeNs_p, tEplTimerkCallback pfnCallback_p, unsigned long ulArgument_p, BOOL fContinuously_p); tEplKernel PUBLIC EplTimerHighReskDeleteTimer(tEplTimerHdl* pTimerHdl_p); #endif // #ifndef _EPLTIMERHIGHRESK_H_
The Linker is telling you exactly what the problem is - you have not supplied definitions for the three symbols EplTimerHighReskDeleteTimer, EplTimerHighReskInit, and EplTimerHighReskModifyTimerNs
That's what "Undefined" means!
You have not shown any definitions for any of these in any of your posts, or explained where you think the definitions should be coming from...
Does the rest of the build complete without errors & warnings?
There's a number of comditional-compilation checks in the stuff you posted - are you sure that your project is all correctly configured for these to work properly?
Is there any source file(s) that you've forgotten to include in your project? Is there any library file(s) that you've forgotten to include in your project?