Advertisement

Bug (2.18.1) Mac Universal PowerPC

Started by November 22, 2010 04:56 PM
2 comments, last by WitchLord 14 years ago
Hi,

const float Pi = 3.1415926535897932384626433832795f;

Give a runtime crash in PowerPC when being compiled.
Not sure why, not sure if it was fixed for new versions, but thought it would be good to mention.


edit:

it is a global constant.

float Pi = 3.14;

also do the same crash.

int Unique_Var_name_PaPi=4;

also do the same crash.

but

int Unique_Var_name_PaPi;

doesn't

So the problem is the assignation constructor of global variables in PowerPC (at least ran by rosetta).


[Edited by - Pogacha on November 22, 2010 5:12:07 PM]
Can you give the latest version from the SVN a try?

If not I'll have to boot up my MacMini and give this a try.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
In Debug mode the library didn't compile. It did in release mode.

It took me a lot of work to make my code work because of the changes on the library.

With the new version of the library there weren't a crash. I don't feel my tests were enough since the ideal would have been to isolate the problem (I haven't created a test app).

Unfortunately, I cannot use the new library because of the too many changes.

Anyway, this will be the last universal build I'll made for a game (and it is so far the only one where I'm using scripting), the work-around is as easy as to declare the var within a scope so I won't worry about this anymore.

Thanks so much!

[Edited by - Pogacha on November 23, 2010 9:31:26 AM]
Thanks for the update.

Sounds like I'll have to do some compatibility testing on the Mac again anyway, at the very least to make the debug build work again.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement