Altera_Forum
Honored Contributor
20 years agonr_timer_milliseconds not found?
Hello Friends!
When I compile this piece of code#include <asm/timer_struct.h>
int Timer_TimerDif(Timer_Data_t *timerData)
{
return nr_timer_milliseconds()-timerData->iStartTimer;
} I get this error message: undefined reference to `nr_timer_milliseconds' Although timer_struct.h contains the following declaration of nr_timer_milliseconds int nr_timer_milliseconds(); // Starts on first call, hogs timer1. The definition of struct np_timer for variable timerData is found by the compiler in timer_struct.h. But nr_timer_milliseconds is not founded? Bye, Lothar.