typedef struct Personnage Personnage;
struct Personnage{
int vie;
int munitions;
int position;
SDL_Rect positions;
SDL_Rect positionVie;
SDL_Surface *haut, *bas, *gauche, *droite;
FSOUND_Sample mort;
FSOUND_Sample aie;
};
le main.c en gros:
#include "Main.h"
int main(){
Personnage hero;
}
et les erreur:
18 C:\MonProjet\Main.h syntax error before "FSOUND_Sample"
18 C:\MonProjet\Main.h [Warning] no semicolon at end of struct or union
19 C:\MonProjet\Main.h [Warning] data definition has no type or storage class
4 C:\MonProjet\main.c storage size of 'hero' isn't known
j'ai cherché mais je n'ai pas trouvé, SVP aidez moi
Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois. Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.