Hello, je commence tout juste la programmation sur nds mais j'ai un big problême...
Dans un programme tout simple:
Code:
#include <PA9.h> // Include for PA_Lib
// Graphics converted using PAGfxConverter
#include "gfx/all_gfx.c"
#include "gfx/all_gfx.h"
/*!
Class
*/
class tp
{
private:
int z;
protected:
public:
};
// Function: main()
int main(int argc, char ** argv)
{
PA_Init(); // Initializes PA_Lib
PA_InitVBL(); // Initializes a standard VBL
// Load the 4 Backgrounds
PA_EasyBgLoad(0, 0, bg0);
PA_EasyBgLoad(0, 1, bg1);
PA_EasyBgLoad(0, 2, bg2);
PA_EasyBgLoad(0, 3, bg3);
// Infinite loop to keep the program running
while (1)
{
PA_WaitForVBL();
}
return 0;
} // End of main()
Et là, à chaque compilation j'ai l'erreur:
d:/DEV/Essai/source/main.c:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tp'
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
Je sais absolument pas ce qui se passe et j'ai rien trouvé sur le net ?
Je précise j'utilise VisualHam en version par defaut (livrée avec PALIB)...
Merci à ceux qui pourront m'aider...