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