Bonjour,

je suis actuellement en train d'essayer de rendre mon application portable pour Windows. J'ai installé C::B sur Windows et installé SDL grâce à ce tutoriel.

J'ai créé un nouveau projet et j'y ai inclu mes .c, .h, mes images et mon .tff. Ensuite j'ai rajouté SDL.dll, SDL_image.dll et SDL_ttf.dll dans la racine de mon projet.

J'essaye de compiler et j'ai un warning qui ne vient pas de mon code:
Project : SDL Application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Pierrick\Bureau\Pacman\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: controles.c
Compiling: game_over.c
Compiling: gestion_fantomes.c
Compiling: gestion_pacman.c
Compiling: jeu.c
Compiling: main.c
Compiling: pause.c
Compiling: chargement.c
Linking console executable: SDLapp.exe
C:\Program Files\CodeBlocks\lib\SDLmain.lib(./Release/SDL_win32_main.obj):C:\SDL-1.2.11\Src\.text[_main]+0x0): multiple definition of `main'
C:\Program Files\CodeBlocks\lib/libmingw32.a(main.o):main.c.text+0x0): first defined here
Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
C:\Program Files\CodeBlocks\lib\SDLmain.lib(./Release/SDL_win32_main.obj):C:\SDL-1.2.11\Src\.text[_main]+0x55): undefined reference to `_alloca_probe'
C:\Program Files\CodeBlocks\lib\SDLmain.lib(./Release/SDL_win32_main.obj):C:\SDL-1.2.11\Src\.text[_WinMain@16]+0x181): undefined reference to `_alloca_probe'
C:\Program Files\CodeBlocks\lib\SDLmain.lib(./Release/SDL_win32_main.obj):C:\SDL-1.2.11\Src\.text[_WinMain@16]+0x1c1): undefined reference to `_alloca_probe'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 1 warnings
Comment puis-je arranger ça?

Merci d'avance

P.S: c'est la première fois que j'utilise code::blocks, avant je faisais tout sous emacs avec Ubuntu.