Loading...
 
Skip to main content

System Workbench for STM32


IDE error with enums

Symbols defined in with typedef enum appear not to be recognized by the IDE. This doesn't seem to cause problems building UNLESS a dependent file is actually opened, at which point numerous errors are generated.

Here's is an example with my slash and burn fix. But is there a better way?

// ADDED for Eclipse IDE
#define MEMS_SUCCESS 0x01
#define MEMS_ERROR 0x00
typedef enum {
MEMS_SUCCESS = 0x01,
MEMS_ERROR = 0x00
} status_t;

Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500
System Workbench for STM32 - OpenOCD (for Windows 32bits)
Version: 1.13.2.201703061529
Build id: @build@