Hi,
I'm about to start using the Simple Directmedia Layer (SDL) library to write some graphics programs with Pelles C. I'm also about to write a tutorial on how to do it, so even though I appear to have got it working, I want to check whether I have done it correctly.
Which of the following steps are NOT needed or wrong:
1) Put sdl.dll into the PellesC\bin directory.
2) Run polib.exe in the PellesC\bin directory:
polib sdl.dll /OUT:sdl.lib
3) Put sdl.lib into the PellesC\lib directory.
4) Put all the SDL include (.h) files into the PellesC\include directory
5) Create a new Win32 [.exe] project
6) Add sdl.lib to the list of libraries to be linked in the project/linker options of your project
7) Put sdl_win32_main.c in your project directory
8 ) Add sdl_win32_main.c to your project
9) Global replace alloca with _alloca in the sdl_win32_main.c file OR check the "Define compatibility names" option in the project/compiler options.
10) Write your SDL program, add it to your project, compile it and enjoy.
I've seen a couple of threads about SDL and no one seems to do all these things. Are some of them unnecessary, or did I miss something?
Bill Hart
http://www.friedspace.com/CProg.html