How to make a project using SDL library with Borland C++ Builder 3.0
First of all we must rebuild the SDL.DLL import library: using the command line tool IMPLIB (you must use the version included with the Borland C++ 5.5 freeware, becouse the one that comes with the compiler don’t let you add the "_" for MS flavor cdecl functions. So, the command line is: "IMPLIB –a –c SDL.LIB SDL.DLL" (THANK YOU VERY MUCH,
Load Borland C++ Builder Ide and create a new project: select "Console Wizard" and then "Window (GUI)". Automatically the Builder will create for you the main file with an empty WinMain function (that you CAN’T DELETE).
Open the "SDL_main.c" and copy all the source in place of the Borland WinMain function. DON’T DELETE all the code: it’s needed by the Builder!
Add "extern "C" {" before the first #include of the previously pasted code, and "}" after the #endif
Open the project "OPTIONS" and go in the "DIRECTORIES/CONDITIONALS" tab, and add "WIN32" in the "CONDITIONAL DEFINES".