Partage
  • Partager sur Facebook
  • Partager sur Twitter

Problème avec la SDL

Sujet résolu
    31 mai 2006 à 16:12:15

    Voila j'ai télécharger le fichier sdl je l'ai placer (du moin j'espere) où il faut (dans les fichiers de code::block) mais la compilation rate toujours !

    Même si je telecharge le projet du triangle en couleur .

    Citation : code

    Project : SDL GL Application
    Compiler : GNU GCC Compiler (called directly)
    Directory : C:\Documents and Settings\Manu\Bureau\sdz_sdl_gl_application\
    --------------------------------------------------------------------------------
    Switching to target: default
    Compiling: main.cpp
    main.cpp:1:21: SDL/sdl.h: No such file or directory
    main.cpp: In function `int main(int, char**)':
    main.cpp:7: error: `SDL_INIT_VIDEO' undeclared (first use this function)
    main.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)
    main.cpp:7: error: `SDL_Init' undeclared (first use this function)
    main.cpp:8: error: `SDL_WM_SetCaption' undeclared (first use this function)
    main.cpp:9: error: `SDL_OPENGL' undeclared (first use this function)
    main.cpp:9: error: `SDL_SetVideoMode' undeclared (first use this function)
    main.cpp:12: error: `SDL_Event' undeclared (first use this function)
    main.cpp:12: error: expected `;' before "event"
    main.cpp:16: error: `event' undeclared (first use this function)
    main.cpp:16: error: `SDL_WaitEvent' undeclared (first use this function)
    main.cpp:19: error: `SDL_QUIT' undeclared (first use this function)
    main.cpp:35: error: `SDL_GL_SwapBuffers' undeclared (first use this function)
    main.cpp:38: error: `SDL_Quit' undeclared (first use this function)
    Process terminated with status 1 (0 minutes, 2 seconds)



    aidez moi :S
    • Partager sur Facebook
    • Partager sur Twitter
      31 mai 2006 à 16:17:46

      Il faut que tu fasse un projet OpenGl et pas SDL. Tu doit aussi inclure les .h de OpenGL
      • Partager sur Facebook
      • Partager sur Twitter
        31 mai 2006 à 16:30:01

        ah oki merci :)

        Mais qaund j'ai pris le projet de celui qui a fais le tuto il était aussi sdl ?
        • Partager sur Facebook
        • Partager sur Twitter

        Problème avec la SDL

        × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
        × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
        • Editeur
        • Markdown