Including rtems.h from C++

Isaac Gutekunst isaac.gutekunst at vecna.com
Thu Jun 2 15:15:05 UTC 2016


Hello everyone,

I'm getting a lot of error messages, presumably because I'm including rtems.h from a C++ file.

I'm running rtems master as of yesterday.

I'm getting a lot errors such as:

/home/igutek/rtems/lib-rtems-atsamv/arm-rtems4.12/atsamv/lib/include/rtems/score/timestamp.h: In function 'uint32_t _Timestamp_Get_nanoseconds(const Timestamp_Control*)':
/home/igutek/rtems/lib-rtems-atsamv/arm-rtems4.12/atsamv/lib/include/rtems/score/timestamp.h:283:33: error: 'bintime2timespec' was not declared in this scope
    bintime2timespec( _time, &_ts );

As well as:

error: invalid use of incomplete type 'const Timestamp_Control {aka const struct bintime}'


Is this a bug, or should I do something different? I'm including the files within an extern "C" { } block.

Thanks,
Isaac




More information about the users mailing list