8 years, 8 months ago.

How to include #include <sys/time.h>

Hello everybody,

I want to compile a program I have on my nucleo F401RE. The problem is that the program include sys/time.h but the compiler canno't find it (even if the file is here)

As anyone faced the same problem ?

Not sure if this is the same, I added #include "time.h" to one of my F401 programs and it didn't hit any errors.

posted by Paul Staron 14 Sep 2015

Hi Christopher, I am using FRDM-KL25Z and here is way I added time.h and didn't got any error

  1. include "Ethernet.h"
  2. include <time.h>
posted by Elmaddin Guliyev 15 Sep 2015

Thank you both for your answer. But I already tested that but unfortunatly they are not the same. I need the struct timeval but it's not declared in time.h....

posted by Christopher Coat 15 Sep 2015
Be the first to answer this question.