Hi, ich suche nach einer Möglichkteit einen Struct in einer Typendeklaration zu nutzen, ohne das der Struct schon vorher bekannt ist. Also:
1 | typedef struct |
2 | {
|
3 | my_struct_2_t bim; |
4 | }my_struct_1_t; |
5 | |
6 | typedef struct |
7 | {
|
8 | uint8_t blub; |
9 | uint16_t fab; |
10 | }my_struct_2_t; |
"my_struct_2_t" wird schon in "my_struct_1_t" benötigt, ist aber nicht bekannt. error: expected specifier-qualifier-list before 'my_struct_2_t' Wonach muss ich suchen? Grüße, Sven