| Issue 234: | class that implements an interface does not compile | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Using haxe r6450, hxcpp r697, the following code failed to be compiled on Mac: interface Test {} class Main implements Test { static function main():Void { trace("ok"); } } Error: haxelib run hxcpp Build.xml haxe -Dhaxe3="1" -Dhaxe_ver="3." Creating obj/darwin//__pch/haxe/hxcpp.h.gch... g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/3,0,0//include -DHX_MACOS -m32 -DHXCPP_VISIT_ALLOCS -frtti -o obj/darwin//__pch/haxe/hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/3,0,0//include/hxcpp.h g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/3,0,0//include -DHX_MACOS -m32 -DHXCPP_VISIT_ALLOCS -x c++ -frtti -Iobj/darwin//__pch/haxe ./src/haxe/Log.cpp -oobj/darwin//src/haxe/Log.o g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/3,0,0//include -DHX_MACOS -m32 -DHXCPP_VISIT_ALLOCS -x c++ -frtti -Iobj/darwin//__pch/haxe ./src/Main.cpp -oobj/darwin//src/Main.o In file included from ./src/Main.cpp:4: include/Main.h:33: error: expected unqualified-id before ‘&’ token include/Main.h:33: error: expected ‘,’ or ‘...’ before ‘&’ token ./src/Main.cpp:31: error: expected unqualified-id before ‘&’ token ./src/Main.cpp:31: error: expected ‘,’ or ‘...’ before ‘&’ token ./src/Main.cpp: In member function ‘hx::Object* Main_obj::__ToInterface()’: ./src/Main.cpp:32: error: ‘inType’ was not declared in this scope ./src/Main.cpp:33: error: ‘inType’ was not declared in this scope Called from ? line 1 Called from BuildTool.hx line 1470 Called from BuildTool.hx line 673 Called from a C function Called from BuildTool.hx line 708 Called from BuildTool.hx line 842 Called from BuildTool.hx line 889 Called from BuildTool.hx line 247 Uncaught exception - Error : 1 - build cancelled Error: Build failed
Apr 13, 2013
#1
andy@onthewings.net
May 2, 2013
(No comment was entered for this change.)
Status:
Invalid
|