Bonjour,
je souhaite faire un truc vraiment tout bête :
struct roue
{
int taille;
};
struct voiture
{
roue roue_avant;
int NbRoues;
};
Ainsi, je pourrais avoir un :
voiture monCarosse;
monCarosse.roue_avant.taille = 1;
Lorsque je compile
gcc -Wpointer-arith -fwritable-strings -O2 -c MonCode.c -o MonCode.o
j'ai l'erreur suivante :
WorkOnXml.c:6: error: parse error before "roue "
Pourquoi ? vu qu'à priori c'est correct....
Partager