Hello!
I've setup cross compile environment using Eclipse according to the guide 
here<http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone-for-c-development/>
. 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to