My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 56: Problems with Android Target and Enums
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2011


 
Reported by heinz.ho...@googlemail.com, Aug 15, 2010
What steps will reproduce the problem?

enum Tuple2 {
	Tuple2;
}


class Test 
{
	public static function main() 
	{
		var t = Tuple2;
		
	}
}


This fails (only when -D android is set) to compile with the following error message:

include/Tuple2.h:22: error: declaration of 'Tuple2 Tuple2_obj::Tuple2'
include/Tuple2.h:6: error: changes meaning of 'Tuple2' from 'typedef class hx::ObjectPtr<Tuple2_obj> Tuple2'
Called from ? line 1
Called from BuildTool.hx line 899
Called from BuildTool.hx line 451
Called from BuildTool.hx line 475
Called from BuildTool.hx line 548
Called from BuildTool.hx line 620
Uncaught exception - Error in building thread
Error : Build failed

Aug 15, 2010
#1 heinz.ho...@googlemail.com
ah, just figured out, that this only fails when the constructor has the same name as the type.
Aug 15, 2010
#2 heinz.ho...@googlemail.com
adding the -fpermissive switch to gcc treat this error as warning, maybe this is an option.
Jan 17, 2011
Project Member #3 gameh...@gmail.com
Using fully-qualified paths fixed this problem on SVN.
Status: Fixed

Powered by Google Project Hosting