This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uvision: time.h undefined time symbol

hi,

could someone tell me the way to work with the time.h header file? At the moment I get the error message "undefined symbol time"

#include <stdio.h>
#include <time.h>
#include "math.h"

//....

//line which generates the error message:
time_t t = time(NULL);

I'm no sure which header file is missing... Or if there's any other error... by the way I'm working with the AT91SAM9260 controller...

best regards
Stefan

Parents
  • I found the first problem - I used the Microlib.

    Without Microlib I can start the programm, but the code

    time_t t = time(NULL);
    

    cause a SWI interrupt - but I don't know why...

    Could someone give me an example how I have to use the time.h functions e.g.

    best regards
    Stefan

Reply
  • I found the first problem - I used the Microlib.

    Without Microlib I can start the programm, but the code

    time_t t = time(NULL);
    

    cause a SWI interrupt - but I don't know why...

    Could someone give me an example how I have to use the time.h functions e.g.

    best regards
    Stefan

Children