This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GCC compile error in fstorage.h in SDK14

There is a compile error with fstorage using GCC in file fstrorage.h in components/libraries/fstorage folder of the SDK14.

The error is due to the fact that the structure nrf_fstorage_api_t is being forward declared then a typedef is used to declare the structure itself.

To correct the issue fstorage.h needs to be changed as follow :

line 115 : typedef struct nrf_fstorage_api const nrf_fstorage_api_t;
line 144 : nrf_fstorage_api_t * p_api;
line 174 : struct nrf_fstorage_api
line 188 : };

Related