Trying to use a library of the decawave EVK1000 - time.h: No such file or direc

Hi! hello :) We recently use the decawave EVK1000 Evaluation Kit. There is a decadriver included, wich i try to include in a sketch.

I get an error : fatal error: time.h: No such file or directory.

When we provide a time.h file, we get an error with stat.h file. and so on.. It looks like this are files of the glibc library. How can i include these files (glibc) to prevent the "No such file or directory" errors?

I hope someone can help me out!

Thanks in advance.

Please post your full program or a smaller but complete example that exhibits the problem as well as the full error messages you get. Links to libraries used would also be helpful.

Incidentally, the Time library files normally have a capital T as part of their filenames.

The code of the sketch is:

#include <compiler.h>

#include <deca_device_api.h>
#include <deca_param_types.h>
#include <deca_regs.h>
#include <deca_types.h>
#include <deca_version.h>

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

The full error is:
In file included from sketch_sep11b.ino:1:0:
C:\Users\Ebps\Documents\Arduino\libraries\compiler/compiler.h:27:18: fatal error: time.h: No such file or directory
#include <time.h>
^
compilation terminated.
Error compiling.

What is compiler.h and where did it come from. Presumably it has an #include for time.h in it. What happens if you change it to #include Time.h ?

thanks, It came from the decawave sources:

/*! ----------------------------------------------------------------------------

  • @file compiler.h
  • @brief
  • @attention
  • Copyright 2013 (c) DecaWave Ltd, Dublin, Ireland.
  • All rights reserved.
  • @author DecaWave
    */

#ifndef COMPILER_H_
#define COMPILER_H_

#ifdef __cplusplus
extern “C” {
#endif

#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <assert.h>

#ifdef GNUC
#include <unistd.h>
#include <stdbool.h>
#ifndef __cplusplus
#ifndef TRUE
#define TRUE true
#endif
#ifndef FALSE
#define FALSE false
#endif
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#define Sleep(x) usleep((x*1000))
#define __align4 attribute((aligned (4)))
#define __weak attribute((weak))
#define __always_inline attribute((always_inline))
#endif

#ifdef ICCARM
#include <yfuns.h>
#define _caddr_t_required
#define _useconds_t_required
#define _tms_struct_required
#define _stat_struct_required
#define STDIN_FILENO _LLIO_STDIN
#define STDOUT_FILENO _LLIO_STDOUT
#define STDERR_FILENO _LLIO_STDERR
#define __align4 /* to be defined? /
#define __weak /
to be defined? /
#define _exit __exit
#define Sleep(x) usleep((x
1000))
#include “sleep.h”
#endif

#ifdef _MSC_VER
#include <windows.h>
#include <share.h>
#define __align4 /* no implementation /
#define __weak /
no implementation */
#define __always_inline
#else
#define sprintf_s(x,y,…) 0 // temporary workaround
#endif

#ifndef __IO
#define __IO volatile
#endif

/* Redefine CLOCKS_PER_SEC to make it work with Sleep(1) */
#undef CLOCKS_PER_SEC
#define CLOCKS_PER_SEC 1000

#ifdef __cplusplus
}
#endif

#endif /* COMPILER_H_ */

Time.h didn't make the differents

Time.h didn’t make the differents

Did the error message change ?

#include <time.h>Do you actually have a file named time.h or Time.h on your system and, if so, where is it located ?