www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Allegro

reply Thomas Giesel <thomas.giesel detewe.de> writes:
Did anyone of you use the allegro library with DMC++?
What is the easiest way to do that (patches to 
header-files or defines etc.)?

Thomas
Mar 19 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
Where can we find the Allegro library.
Jan



Thomas Giesel wrote:

 Did anyone of you use the allegro library with DMC++?
 What is the easiest way to do that (patches to header-files or
 defines etc.)?

 Thomas
Mar 19 2002
parent Thomas Giesel <thomas.giesel detewe.de> writes:
It's a game portable programming library:
http://sourceforge.net/projects/alleg/ 
and www.allegro.cc

Yesterday I had a look at the sources. As there is a port for MSVC it should
not be hard to write a DMC-"port". The only disturbing thing is that they
need GNU-make (e.g. from DJGPP) for *every* Compiler, even MSVC.

I will do that thing, but I have to come to a decision:
- Write an include makefile for GNU-make + DMC, that would fit into the
  makefile-scheme of Allegro. It could be attached to the official
  Allegro release. There would be no need to change this makefile for every
  minor new version. But one has to install GNU-make and maybe the 
  GNU-assembler.
*or*
- Write a native makefile for Digital Mars make/smake and some source patches. 
  There would be no need to install DJGPP, but the Allegro-people dont
  include this into their packege. Some guy wrote makefiles for MSVC,
  these are also only distributed seperated. Maybe this makefile had to be 
  updated for every new release of Allegro.

Of course one can convert the MSVC-compiled libs. But nevertheless the
headerfiles have to be patched.

What's your opinion? 

IMHO DM make/smake cannot be used with these makefiles: e.g. they use
"ifdef" and not "!IFDEF" and "A += foo" and not "A = $(A) foo"

Thomas


Jan Knepper schrieb:
 
 Where can we find the Allegro library.
 Jan
 
 Thomas Giesel wrote:
 
 Did anyone of you use the allegro library with DMC++?
 What is the easiest way to do that (patches to header-files or
 defines etc.)?

 Thomas
Mar 20 2002