I'm writing a C program. Ones of its headers declares a structure like this:
struct s_emulator;
Then I define it in a source file:
struct s_emulator
{
struct s_cpu cpu;
struct s_screen screen;
struct s_input in;
};
To finally use it in my main.c file:
struct s_emulator emulator;
Everything seems okay, but I get the following error messages:
src/main.c:7:23: error: storage size of ‘emulator’ isn’t known
7 | struct s_emulator emulator;
| ^~~~~~~~