The problem is very easy to describe:
There are many functions like
void SOME_FN (char *filename);
which do not work in C++ when called like
std::string s;
// ...
SOME_FN (s.c_str ());
but need
SOME_FN (const_cast <char *> (s.c_str ()));
because of the C++ const handling.
This should be very easy to fix by just adding const's
in the header and all source files (or better a define
named CONST which is defined as const when the
compiler supports it).
Ex:
void SOME_FN (const char *filename);
Normally fixing the allegro.h file would be enough (as
I did with many of those functions) but generates
warnings when compiling allegro, so the source files
have to be changed, too.
Logged In: NO
Please remove it. I solved the problem: I could not install
the 3.9.34 version (which does exactly that) because the
assembler of my djgpp package would not take it, but
thought I had 3.9.34 (I have the zipfile, but could not
install it). Please REMOVE THIS REPORT!