[SDL] Compiling with builder 5

Dominique Louis Dominique at SavageSoftware.com.au
Tue Jul 2 09:00:01 PDT 2002

Hola Manolo,
   I just had a quick look at the Builder files in BCB6 and I found that 
the SDL.dll and SDLMain.lib projects are missing some projects options.
In the SDL.dll project you need the following conditional defines...

In the SDLMain.lib project you need the following conditional defines...

With these changes all projects should compile.
2 of the demo projects do not have the correct path set but apart from 
that all the demos I tested worked after the changes above.

The only downside is that the demos then require that you ship the 
CBuilder created SDL.dll file, instead of the one that is created by Sam.

If you want to use the DLLs that Sam provides them you need to create a 
CBuilder compliant lib by doing the following...
IMPLIB -a -c SDL.lib SDL.dll

Then you will be able to use Sam's DLLs if you include the IMPLIB 
created lib file in your projects.

I hope this helps.



manolopm at cip.es wrote:
> Hi:
> 	I download de sources of sdl version 1.2.4 and I tried to compile 
> it with builder 5. 
> 	I followed the instruction of the Borland.zip that is in the source 
> but still it take me to an error in gl.h. I think it should be something 
> wrong in the project because I can compile the opengl examples that 
> comes with builder.
> 	Any idea? Any help? Any information on web?
> Thanks...
> "Al hacer bien, evita que los otros lo sepan; 
> al hacer mal, evita saberlo tu" (Hijos de Dune)
> Manolo Padron Martinez
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl

http://www.DelphiGamer.com := for all your Object Pascal game 
development needs;
http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME := Home of JEDI-SDL; 
Cross-platform game development with Pascal, has never been easier.

More information about the SDL mailing list