FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compiler error

 
Post new topic   Reply to topic     Forum Index -> Yage
View previous topic :: View next topic  
Author Message
DiegoCanuhe



Joined: 08 Jul 2011
Posts: 1

PostPosted: Fri Jul 08, 2011 4:08 am    Post subject: compiler error Reply with quote

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
View user's profile Send private message
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Fri Jul 08, 2011 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Yage All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group