Game Development Community

Compiling TGB with GCC 4.2.0

by David Janssens · in Torque Game Builder · 11/21/2007 (1:47 am) · 1 replies

Hello,
I'm trying to get TGB to compile on my linux system, which is running openSuSE 10.3. The standard compiler on that distribution is the GCC 4.2.0

In this thread on the forums, I started trying to compile under linux, and most of the issues I can solve, but the last one has me blocked. I'm sure it is not linux-related, but only GCC (or C++) related.

I'm no C++ guru, so I would need some help with this:

dgl/dgl.cc: In function 'U32 dglDrawTextN(GFont*, const Point2I&, const UTF16*, U32, const ColorI*, U32, F32)':
dgl/dgl.cc:343: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
./core/frameAllocator.h:259: note: candidate 1: T& FrameTemp::operator[](U32) [with T = TextVertex]

Do any of you have an idea how to fix this error? The internet search didn't turn up anything sadly.

Thank you very much