Hi,
I’m trying to get my device connected to the golioth network and am working through a few examples. The issue I am having however is that I can’t compile when I include the Giolioth Zephyr SDK in my project.
Doing this:
#include <net/golioth/system_client.h>
Gives me the following failure:
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/lightdb.h:22:6: error: use of enum 'golioth_content_format' without previous declaration
22 | enum golioth_content_format;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/lightdb.h:42:33: error: use of enum 'golioth_content_format' without previous declaration
42 | enum golioth_content_format format,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/lightdb.h:60:30: error: use of enum 'golioth_content_format' without previous declaration
60 | enum golioth_content_format format,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/lightdb.h:83:33: error: use of enum 'golioth_content_format' without previous declaration
83 | enum golioth_content_format format,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/lightdb.h:102:30: error: use of enum 'golioth_content_format' without previous declaration
102 | enum golioth_content_format format,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/lightdb.h:123:37: error: use of enum 'golioth_content_format' without previous declaration
123 | enum golioth_content_format format,
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth.h:13:
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/stream.h:41:33: error: use of enum 'golioth_content_format' without previous declaration
41 | enum golioth_content_format format,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/cmabon/ncs/v2.5.0-rc1/modules/golioth/include/net/golioth/stream.h:60:30: error: use of enum 'golioth_content_format' without previous declaration
60 | enum golioth_content_format format,
``The project is using the NRF Connect SDK, version 2.5 withe version 0.8 of the Golioth library. The project is being built with C++ but including it through a C file wrapped in Extern “C” didn’t cause any change.
Any help would be greatly appreciated.