begin process at 2012 05 30 08:35:44
  Trouver un code source :
 
dans
 
Accueil > Forum > 

C

 > 

Divers

 > 

Débutant(e)

 > 

[SDL] installation


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

[SDL] installation

vendredi 25 avril 2008 à 16:07:10 | [SDL] installation

Cash89

Bonjour à tous,
Voilà 2 jours que j'essaye d'installer la librairie SDL. J'ai suivi de nombreux tuto sur le net et j'ai toujours les memes erreurs lors de la compilation.
Je code sous Dev cpp sur Windows. J'ai installé la librairie SDL a partir de Dev cpp (elle se trouve donc dans include/SDL/...).
Dans mes editeurs de lien j'ai -lmingw32 -lSDLmain -lSDL -mwindows
Mon SDL.dll et bien dans la racine de mon projet.

J'essaye de compiler ça

#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>

int main(int argc, char *argv[])
{

return 0;
}

IL ya juste l'entete SDL mais ca fonctionne meme pas (j'ai essayé ac des lignes de SDL ça change rein evidemment)
Lors de la compilation voici les erreurs ( c'est le log et désolé pour le bloc d'erreur :S )


Compilateur: Default compiler
Building Makefile: "C:\Documents and Settings\Cash89\Mes documents\ESIAL\projet C\test\Makefile.win"
Exécution de  make...
make.exe -f "C:\Documents and Settings\Cash89\Mes documents\ESIAL\projet C\test\Makefile.win" all
gcc.exe -c test.c -o test.o -I"C:/Dev-Cpp/include"    -ansi -traditional-cpp

In file included from C:/Dev-Cpp/include/SDL/SDL_stdinc.h:137,

                 from C:/Dev-Cpp/include/SDL/SDL_main.h:26,
                 from C:/Dev-Cpp/include/SDL/SDL.h:28,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive

In file included from C:/Dev-Cpp/include/SDL/SDL_main.h:59,
                 from C:/Dev-Cpp/include/SDL/SDL.h:28,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive

In file included from C:/Dev-Cpp/include/SDL/SDL_error.h:30,
                 from C:/Dev-Cpp/include/SDL/SDL_audio.h:29,
                 from C:/Dev-Cpp/include/SDL/SDL.h:30,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_endian.h:47,
                 from C:/Dev-Cpp/include/SDL/SDL_audio.h:30,
                 from C:/Dev-Cpp/include/SDL/SDL.h:30,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_mutex.h:34,
                 from C:/Dev-Cpp/include/SDL/SDL_audio.h:31,
                 from C:/Dev-Cpp/include/SDL/SDL.h:30,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_thread.h:37,
                 from C:/Dev-Cpp/include/SDL/SDL_audio.h:32,
                 from C:/Dev-Cpp/include/SDL/SDL.h:30,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_rwops.h:33,
                 from C:/Dev-Cpp/include/SDL/SDL_audio.h:33,
                 from C:/Dev-Cpp/include/SDL/SDL.h:30,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_audio.h:35,
                 from C:/Dev-Cpp/include/SDL/SDL.h:30,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_cdrom.h:31,
                 from C:/Dev-Cpp/include/SDL/SDL.h:31,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_cpuinfo.h:31,
                 from C:/Dev-Cpp/include/SDL/SDL.h:32,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_active.h:31,
                 from C:/Dev-Cpp/include/SDL/SDL_events.h:30,

                 from C:/Dev-Cpp/include/SDL/SDL.h:35,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_keyboard.h:32,
                 from C:/Dev-Cpp/include/SDL/SDL_events.h:31,
                 from C:/Dev-Cpp/include/SDL/SDL.h:35,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_video.h:32,
                 from C:/Dev-Cpp/include/SDL/SDL_mouse.h:30,
                 from C:/Dev-Cpp/include/SDL/SDL_events.h:32,
                 from C:/Dev-Cpp/include/SDL/SDL.h:35,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_mouse.h:32,
                 from C:/Dev-Cpp/include/SDL/SDL_events.h:32,
                 from C:/Dev-Cpp/include/SDL/SDL.h:35,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_joystick.h:31,
                 from C:/Dev-Cpp/include/SDL/SDL_events.h:33,

                 from C:/Dev-Cpp/include/SDL/SDL.h:35,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_events.h:36,
                 from C:/Dev-Cpp/include/SDL/SDL.h:35,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_loadso.h:47,
                 from C:/Dev-Cpp/include/SDL/SDL.h:36,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_timer.h:31,
                 from C:/Dev-Cpp/include/SDL/SDL.h:40,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL_version.h:30,
                 from C:/Dev-Cpp/include/SDL/SDL.h:42,

                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive
In file included from C:/Dev-Cpp/include/SDL/SDL.h:44,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/begin_code.h:94: warning: extra tokens at end of #endif directive

In file included from C:/Dev-Cpp/include/SDL/SDL_main.h:26,
                 from C:/Dev-Cpp/include/SDL/SDL.h:28,
                 from test.c:3:
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:109: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:109: error: syntax error before "uint8"
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:109: warning: data definition has no type or storage class
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:110: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:110: error: syntax error before "sint8"
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:110: warning: data definition has no type or storage class
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:111: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:111: error: syntax error before "uint16"
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:111: warning: data definition has no type or storage class
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:112: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:112: error: syntax error before "sint16"
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:112: warning: data definition has no type or storage class
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:113: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:113: error: syntax error before "uint32"
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:113: warning: data definition has no type or storage class
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:114: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:114: error: syntax error before "sint32"

C:/Dev-Cpp/include/SDL/SDL_stdinc.h:114: warning: data definition has no type or storage class

C:/Dev-Cpp/include/SDL/SDL_stdinc.h:115: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:115: error: syntax error before "uint64"
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:115: warning: data definition has no type or storage class
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:116: error: syntax error at '##' token
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:116: error: syntax error before "sint64"
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:116: warning: data definition has no type or storage class
C:/Dev-Cpp/include/SDL/SDL_stdinc.h:133: error: syntax error at '##' token

C:/Dev-Cpp/include/SDL/SDL_stdinc.h:133: error: syntax error before "enum"

make.exe: *** [test.o] Error 1

Une idée ?

Merci


Cette discussion est classée dans : include, from, dev, cpp, sdl


Répondre à ce message

Sujets en rapport avec ce message

Pb avec l'assembleur dev-cpp [ par 6co ] Voici une source vue sur cppfrance et corrigée pour l'assembleur de Dev-Cpp#include #include #include #pragma inlineusing namespace std;int main(void) C++ VS Mysql [ par ours_aquatique ] Bonjour ,Aprés une semaine de recherche infructueuse , j'ai toujours le probleme suivant:je compile sous devC++ j utilise Mysql (V4.et des poussieres) dev-cpp arghhhhh! [ par Alesx ] Bijour à tous et à toutes !!!Voilà, gros problème, bon j'me mets à l'opengl et face à différents pbs j'aurais de quoi me tirer une balle aussi, mais c Fmod et dev-cpp 4.9.9.2 [ par kujad ] Bonjour, je vais être clair : FMUSIC_StopSong(zik);     SDL_Quit;        return 0;quand je compile mon code l'erreur vient d'ici, j'utilise dev c++ 4. dev c++ et bibliotheque gsl [ par duchenecedric ] Bonjour à tous, Je tiens a signaler que je n'ai que quelques notions en c++. Voila je viens d'installer dev C++ sur ma machine qui tourne sous winXP. source que je n'arrive pas a compilé [ par h4ck7r ] voila, bah c'es simple je cherche a compilé un fichier cpp j'ai testé DEv C++ et Borland C++Builder 6  mais impossible de compilé avec dev c++ ensuite PB wxWidgets->connection bdd sql [ par satellite34 ] Bonjour, nous developpons actuellement une application de gestion de bdd sql   avec wxWIDGETSDonc, j' utilise wxDbConnectInf pour me connecter mais lo DevCpp ne compile plus [ par JMGR ] Bonjour, J'ai Windows XP Pro et DevCpp, quand je veut compiler j'obtient le log suivant : Compilateur: Default compiler Building Makefile: "D:\proje Problème de compilation avec SDL [ par Tavarez59282 ] Bonjour j'ai decidé recement de me mettre a la SDL mais malheureusement mon compilateur n'est pas de cet avis. Lorque que je compile il affiche les er Probleme de compilation GDI+ avec Dev-C++ [ par julien_boss ] Bonjour tout l'monde :)J'ai ajouté les headers de visual studio concernant GDI+ dans le bon répertoire de dev-c++, puis j'ai compilé mon programme qui


Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,421 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales