Game Development Community

UUID Error in Beta 2

by Nathan Bowhay - ESAL · in Torque 3D Professional · 09/20/2010 (5:40 pm) · 6 replies

I upgraded my code from Torque 3D 1.1 Alpha to Beta 2 and am getting several ambiguous symbol errors. I know it has to do with using namespace Torque cause there is a UUID in that namespace as well as rpcdce.h

I probably messed something else in the merge, cause I didn't get the error before, but I wanted to check and make sure no one else was getting this error. I also wanted to ask if anyone had a clue where it could be an issue so I can narrow it down a bit.

I am going to continue to try and figure it out and will post if I find it.

#1
09/20/2010 (7:17 pm)

Yep, must be some using declaration for namespace Torque.

I'd recommend just putting absolute qualifiers on the conflicting symbols, i.e. ::UUID for the rpcdce.h type and ::Torque::UUID for Torque's UUID.
#2
09/20/2010 (8:01 pm)
I think it is resourceManager.h which seems to be included in a ton of files and has using namespace Torque; which is in the stock version of torque.

I will take a look where it is used and change it to that.
#3
09/20/2010 (8:25 pm)
The odd thing is the error is in rpcnsi.h, rpcdcep.h and rpcdce.h.
#4
09/20/2010 (8:31 pm)

If it's the ambiguity error and it's included after uuid.h and a using namespace Torque; the error will be in those headers.
#5
04/13/2013 (8:49 pm)
@nathan,
how did u solve it ?
#6
04/15/2013 (1:27 am)
I can't remember exactly as it was a bit ago and I'm upgraded to the current dev on Github so stuff changed quite a bit. I am pretty sure though I just needed to specify the namespace as Rene suggested.