www.digitalmars.com         C & C++   DMDScript  

c++.chat - DMC compatibility with SDL?

reply "Gregory Peet" <admin gregpeet.com> writes:
I was wondering if anyone has tried using SDL (http://www.libsdl.org) with
DMC? Any success, fixes, comments?

-- 
-Gregory Peet

STLSoft FAQ:
http://stlsoft.gregpeet.com

Golden Rule of Open-Source Programming:
"Don't whine about something unless you are going to implement it yourself."
May 27 2003
next sibling parent =?iso-8859-15?Q?=22Robert_M._M=FCnch=22?= <robert.muench robertmuench.de> writes:
Am Tue, 27 May 2003 18:04:16 -0700 hat Gregory Peet <admin gregpeet.com> 
geschrieben:

 I was wondering if anyone has tried using SDL (http://www.libsdl.org) 
 with DMC? Any success, fixes, comments?

Hi, I once played around with TinyPTC and got it to work with DMC and DMD. Same with SDL for DMD. Can't remember for DMC but I don' see why there should be big problems. -- Robert M. Münch IT & Management Freelancer http://www.robertmuench.de
May 30 2003
prev sibling parent reply "Wichetael" <wichetael gmx.net> writes:
I've been successfull in compiling an SDL program with DMC on a Win32
platform the other day, you need to do a couple of things though:

When compiling for Win32:
1) for sdl.lib you can simply use the sdl.lib for Borland distributed with
the SDL developer library, you could of couse always make your own.
2) for sdl_main.lib you need to make your own version with DMC, you'll need
to do a little bit of make file modifying.
3) Then when linking you need to include the /ENTRY:_WinMain 16 switch for
the linker. That because of the fact that the entry point is in the library
sdl_main and OPTLINK only looks for entry points in the object files and not
in the libraries.

Regards,
Remko van der Vossen

"Gregory Peet" <admin gregpeet.com> wrote in message
news:bb11ml$22bd$1 digitaldaemon.com...
 I was wondering if anyone has tried using SDL (http://www.libsdl.org) with
 DMC? Any success, fixes, comments?

 --
 -Gregory Peet

 STLSoft FAQ:
 http://stlsoft.gregpeet.com

 Golden Rule of Open-Source Programming:
 "Don't whine about something unless you are going to implement it


Jun 11 2003
parent "Greg Peet" <admin gregpeet.com> writes:
Thanks!

"Wichetael" <wichetael gmx.net> wrote in message
news:bc7feg$28n7$1 digitaldaemon.com...
 I've been successfull in compiling an SDL program with DMC on a Win32
 platform the other day, you need to do a couple of things though:

 When compiling for Win32:
 1) for sdl.lib you can simply use the sdl.lib for Borland distributed with
 the SDL developer library, you could of couse always make your own.
 2) for sdl_main.lib you need to make your own version with DMC, you'll

 to do a little bit of make file modifying.
 3) Then when linking you need to include the /ENTRY:_WinMain 16 switch for
 the linker. That because of the fact that the entry point is in the

 sdl_main and OPTLINK only looks for entry points in the object files and

 in the libraries.

 Regards,
 Remko van der Vossen

 "Gregory Peet" <admin gregpeet.com> wrote in message
 news:bb11ml$22bd$1 digitaldaemon.com...
 I was wondering if anyone has tried using SDL (http://www.libsdl.org)


 DMC? Any success, fixes, comments?

 --
 -Gregory Peet

 STLSoft FAQ:
 http://stlsoft.gregpeet.com

 Golden Rule of Open-Source Programming:
 "Don't whine about something unless you are going to implement it



Jun 11 2003