Bonjour à vous,
Je délare une structure en C
mais j'ai une erreur dans une fonction qui l'utiliseCode:
1
2
3
4
5
6
7
8 typedef struct { char key[SDLK_LAST]; int mousex,mousey; int mousexrel,mouseyrel; char mousebuttons[8]; char quit; } Input;
voici son prototype :
et GCC me renvoie :Code:void UpdateEvents(Input* in);
pourtant je peux déclarer "Input in" ou "Input* in" dans le main sans erreur.Code:UpdateEvents.c|1|erreur: unknown type name Input|
merci à vous.