Game Development Community

TGB Compilation Troubles on Xcode (Fatal)!

by Orion the Hunter · in Technical Issues · 11/26/2012 (2:08 pm) · 1 replies

Hello,

By "fatal" in the title, I do not mean my computer explodes and kills everyone in the immediate vicinity. I mean that Xcode fails the build. Here is where it goes wrong:

static bool setSourceRect(void* obj, const char* data) { static_cast<t2dScroller*>(obj)->setSourceRect(&getStringElementRectI(data)); return false; };

The error is on this part of the string:
getStringElementRectI(data)

Quote:Taking the address of a temporary object of type "Recl"


There is a similar error the comes right after:

scroller->setSourceRect(&getSourceRect());

The error is on this part:
getSourceRect()

Again, the comment is:
Quote:Taking the address of a temporary object of type "Recl"


Could anyone help me out? Thanks. :)


#1
12/12/2013 (6:26 pm)
Did you ever figure out what the problem was? I'm running into the same thing in 1.7.6.