Se connecter avec
S'enregistrer | Connectez-vous

[C] probleme structure

Dernière réponse : dans Programmation

Bonjour à tous et à toutes.

J'ai un petit probleme avec une de mes structure:

le Main.h:
#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <FMOD/fmod.h>

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

Merci

Autres pages sur : probleme structure

Lassé par la pub ? Créez un compte
Lassé par la pub ? Créez un compte
Tom's guide dans le monde