• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Compiling GCC error

creativess

New Member
Joined
Jan 30, 2009
Messages
24
Reaction score
1
Hello there,

I'm running GCC 4.4 and while compiling (its not TFS) im getting

Code:
actions.cpp: In constructor ‘ActionScript::ActionScript(Game*, const std::string                                                                                                                                                             &, const std::string&)’:
actions.cpp:758: error: cast from ‘ActionScript*’ to ‘int32_t’ loses precision

Code:
 this->setGlobalNumber("addressOfActionScript", (int32_t)this);
 
Last edited:
Please, try to use "(intptr_t) this" instead. I found this happening once when compiling a CPP lib with MinGW 64.
Also, if not TFS. What's you're using? And what version?
 
Last edited:
Back
Top