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 202: Several errors related to structure with extenstion
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jan 2013


 
Reported by andy@onthewings.net, Oct 2, 2012
class Test {
	var struct:{ >haxe.Int32, };
	static function main():Void {}
}

Using haxe r5372, hxcpp r583.
Error I received when compiling the above example:

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_207 -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dhaxe_211 -Dsys -Dtrue
mkdir obj
mkdir obj/darwin
mkdir obj/darwin/src
Creating hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/Users/andy/Documents/repo/hxcpp//include -DHX_MACOS -m32 -DHXCPP_VISIT_ALLOCS -Dhaxe_210 -frtti -o hxcpp.h.gch /Users/andy/Documents/repo/hxcpp//include/hxcpp.h
g++ -I. -Iinclude -c -fvisibility=hidden -O2 -I/Users/andy/Documents/repo/hxcpp//include -DHX_MACOS -m32 -DHXCPP_VISIT_ALLOCS -Dhaxe_210 -x c++ -frtti ./src/Test.cpp -oobj/darwin//src/Test.o
./src/Test.cpp:7:24: error: haxe/Int32.h: No such file or directory
In file included from ./src/Test.cpp:4:
include/Test.h:9: error: expected identifier before ‘+’ token
include/Test.h:9: error: expected unqualified-id before ‘+’ token
include/Test.h:9: error: ‘Int32_obj’ was not declared in this scope
include/Test.h:9: error: template argument 1 is invalid
include/Test.h:9: error: expected unqualified-id before ‘+’ token
include/Test.h:32: error: ‘Int32’ in namespace ‘haxe’ does not name a type
./src/Test.cpp: In member function ‘virtual void Test_obj::__Mark(hx::MarkContext*)’:
./src/Test.cpp:46: error: ‘_struct’ was not declared in this scope
./src/Test.cpp: In member function ‘virtual void Test_obj::__Visit(hx::VisitContext*)’:
./src/Test.cpp:52: error: ‘_struct’ was not declared in this scope
./src/Test.cpp: In member function ‘virtual Dynamic Test_obj::__Field(const String&, bool)’:
./src/Test.cpp:62: error: ‘_struct’ was not declared in this scope
./src/Test.cpp: In member function ‘virtual Dynamic Test_obj::__SetField(const String&, const Dynamic&, bool)’:
./src/Test.cpp:71: error: ‘_struct’ was not declared in this scope
./src/Test.cpp:71: error: ‘Int32’ is not a member of ‘haxe’
./src/Test.cpp:71: error: ‘Int32’ is not a member of ‘haxe’
./src/Test.cpp:71: error: no matching function for call to ‘Dynamic::Cast() const’
Called from ? line 1
Called from BuildTool.hx line 1298
Called from BuildTool.hx line 567
Called from a C function
Called from BuildTool.hx line 604
Called from BuildTool.hx line 735
Called from BuildTool.hx line 769
Called from BuildTool.hx line 209
Uncaught exception - Error : 256 - build cancelled
Jan 30, 2013
Project Member #1 si...@haxe.org
I cannot reproduce this on current SVN.
Status: Done
Jan 30, 2013
#2 andy@onthewings.net
I'm still getting the same error with Haxe r5975, hxcpp r632. Here below is the updated code, because Int32 used above is changed.

class A {}
class Main
{
	var struct:{ >A, };
	static function main():Void {}
}

Powered by Google Project Hosting