adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] Having serious compilation problems.....


From: F ker
Subject: [Adonthell-devel] Having serious compilation problems.....
Date: Thu, 31 Jan 2002 02:16:47 +0000 (GMT)

G++ (3.0.3 - i.e. LATEST) doesn't like the way you guys specialise
the hash_map<string> class.  I include the modified class that will
fix this (basically enclosing the specialising code in a 'namespace
std {' / '}' pair, rather than beginning with a 'using namespace std'
clause).  (Sorry for not using a patch - firstly, I don't know how to
use it properly, secondly, with a context of 3, diff made a patch
file about the same size as the file itself!)

------------------- cut here ---------------------------------
namespace std
{

template<> struct hash<string> {
    size_t operator()(const string& s) const {
        return __stl_hash_string(s.c_str());
}};

}; //namespace std
------------------- cut here ---------------------------------

Also, in 'storage.h', when the <ext/hash_map> header is present, you
guys assume that this also includes the standard <map>.  So, errors
are present on lines 217/218, where 'map' is used.  I get around this
by putting '#include <map>' after the hash_map conditional including
stuff.

Yet again.... (sorry about this!) Python, if compiled with ssl
support (like mine was) needs the flags '-lssl -lcrypto' when linking
with one of its libraries (like the final executable does.)  Its
strange that python (2.1.1 anyway) doesn't give these itself, but
what the hey, I thought I'd mention it.

Also, a link to swig on the main download page (i.e. the one with the
link to the data package) would also be nice, it'd keep a lot of
newbies happy.  You guys only have it on the cvs page.

p.s. How do you think the mapping stuff will translate to the Gameboy
Advance?  (It's got hardware rendered background maps and
sprites-n-stuff)

p.p.s. I use glibc 2.1.3 - I'd be happy to compile some x86 binaries
for you... (i.e. for users of glibc 2.1.3 as opposed to 2.2)

Thanks for the GREAT engine,
  Asfand




__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]