Not work... I tried some links to libraries, but to no avail. пятница, 4 октября 2013 г., 19:14:31 UTC+4 пользователь Dieter Wirz написал: > > #include <sys/time.h> > > > On Fri, Oct 4, 2013 at 3:30 PM, <[email protected] <javascript:>> wrote: > > Hello! > > I've setup cross compile environment using Eclipse according to the > guide > > here. > > In this code: > > > > #include "Timer.h" > > #include <time.h> > > > > > > unsigned long millis(void) > > { > > struct timespec ts; > > clock_gettime(CLOCK_MONOTONIC, &ts ); > > return ( ts.tv_sec * 1000 + ts.tv_nsec / 1000000L ); > > } > > > > #ifndef TIMER_H_ > > #define TIMER_H_ > > > > #define CLOCK_MONOTONIC 1 > > > > unsigned long millis (); > > > > #endif /* TIMER_H_ */ > > > > > > > > I have error: > > > > undefined reference to `clock_gettime' > > > > Another libraries work fine (for example stdio.h, iostream ...), but > time.h > > is not. > > > > Help, please. > > Thanks > > > > -- > > For more options, visit http://beagleboard.org/discuss > > --- > > You received this message because you are subscribed to the Google > Groups > > "BeagleBoard" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. >
-- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
