How do I use SDL with lcc-win32?
WARNING: This info is outdated with lcc-win32 packages newer than 2007(?). THe import foreign library works but the compiler settings have changed. Anyone feel like updating this?!
- Download SDL for Visual C++ and SDL source code; extract them in a folder
From lcc-win32 IDE run "Utils->Import foreign library" specifying the path of SDL.lib taken from Visual C++ package, this will create a new lcc\lib\sdl.lib file
Select "Compiler->Settings", in the "compiler settings" tab, " Path" add the path to SDL include files; in the "linker settings" tab, "additional files to be included in the link" add sdl.lib
Select "Project->Add/Delete files...", "Add new file..." and add SDL_win32_main.c taken from the src/main/win32 directory in the SDL source code.