View previous topic :: View next topic |
Author |
Message |
DiegoCanuhe
Joined: 08 Jul 2011 Posts: 1
|
Posted: Fri Jul 08, 2011 4:08 am Post subject: compiler error |
|
|
Hi,
I just cloned Yage from the repo and I get the following error when running buildyage on Ubuntu 10.04:
yage/gui/style.d(274): Error: undefined identifier Resource
yage/gui/style.d(274): Error: no property 'DEFAULT_FONT' for type 'int'
yage/gui/style.d(274): Error: cannot implicitly convert expression (1) of type int to char[]
yage/gui/style.d(274): Error: cannot cast int to char[]
object.Exception: Compiler failed.
After a quick view to the source code, I replaced the line 274 of yage/gui/style.d
char[] fontFamily = Resource.DEFAULT_FONT;
with
char[] fontFamily = ResourceManager.DEFAULT_FONT;
Is that OK?
Thanks |
|
Back to top |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Fri Jul 08, 2011 9:38 am Post subject: |
|
|
Thanks. I made the same change in the source code and also fixed a null error caused by a null Style.color. I haven't investigated that one yet but added a temporary fix.
I need to be more careful when committing code. |
|
Back to top |
|
|
|