haxeui / haxeui-hxwidgets

The hxWidgets backend of the HaxeUI framework -

Home Page:http://haxeui.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error on Ubuntu 16.04 - invalid suffix "L_obj" on integer constant

cambiata opened this issue · comments

Error: While running :g++ -I/home/jonas/haxe/haxeui-test/bin/obj/linux64/pch/haxe -Iinclude -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK -pthread -DwxUSE_WEBVIEW_WEBKIT -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=330 -m64 -DHXCPP_M64 -I/home/jonas/hxcpp/include -x c++ -frtti -Wno-invalid-offsetof ./src/boot.cpp -o/home/jonas/haxe/haxeui-test/bin/obj/linux64/aea44ed0___boot__.o
In file included from /home/jonas/hxcpp/include/hxcpp.h:310:0:
include/hx/widgets/AnyButton.h:12:30: error: invalid suffix "L_obj" on integer constant
HX_DECLARE_CLASS2(hx,widgets,AnyButton)
^
/home/jonas/hxcpp/include/hx/Macros.h:16:8: note: in definition of macro ‘HX_DECLARE_CLASS0’
class klass##_obj;
^
/home/jonas/hxcpp/include/hx/Macros.h:19:58: note: in expansion of macro ‘HX_DECLARE_CLASS1’
#define HX_DECLARE_CLASS2(ns2,ns1,klass) namespace ns2 { HX_DECLARE_CLASS1(ns1,klass) }

Got that one too, not sure why AnyButton seems to be the only class affected by this.

Is this new though? I mean, it compiled previously, right @ibilon? Maybe its the new -DwxUSE_WEBVIEW_WEBKIT i added today?

No I had that one when I made a branch couple of weeks ago, I'll git bisect it.

So, it actually was always there, but needed the --macro include to see it.

My best guess is that AnyButton is in an enum (explaining the "integer constant") and that the error is actually a name clash.