Closed perlmonger42 closed 3 years ago
What version of wxWidgets are you using?
wxmac 3.0.5.1
$ brew install wxwidgets
Warning: wxmac 3.0.5.1_1 is already installed and up-to-date.
To reinstall 3.0.5.1_1, run:
brew reinstall wxmac
For completeness, I'll add that to the issue description.
So i think this is an hxcpp issue, does this snippet compile for you (it does for me):
untyped __cpp__("long n = 100");
var x = untyped __cpp__("n");
It turns into:
HXLINE( 101) long n = 100;
HXLINE( 102) ::Dynamic x = n;
I guess an issue needs to be opened on hxcpp if it doesnt for you.
Let me know
Cheers, Ian
PS: btw, i may have mentioned this to you before but you are much better off grabbing wxWidgets from source and building the lib yourself from the latest release version (3.1.4) as ive found that linux / osx distributions are usually woefully out of date.
For osx / linux the process is really painless and totally worth the effort imo: https://github.com/haxeui/hxWidgets#building-wxwidgets-from-source-linux--osx
oh, forgot to mention, i fixed the deprecation warnings also in git version :)
Right, last thing, i may have worked around your issue in hxWidgets git also, but it would be interesting to know if hxcpp does have issues.
So, to summarize:
Cheers, Ian
Ian: Using your workaround from 213e39f solved the getLong problem. Another compile error showed up in wx/widgets/*.cpp
, but I followed your advice to build wxWidgets myself to get a newer version, and that solved the last problem.
I was able to build and run the haxeui-hxwidgets
starter app.
Thank you for all your help, @ianharrigan!
I'm using:
The error message is:
I notice that there is a definition to convert
long
toDynamic
defined in/usr/local/lib/haxe/lib/hxcpp/4,2,1/include/Dynamic.h
:I would expect that code to be included, since I'm compiling on a Mac, and would expect
!defined(_GNUC_)
to be truthy (I don't know how to check, but surely it's usingclang
?). But I believe it is not being included, becauseDynamic(long inVal)
is not included in the list of "candidate constructors" listed in the C++ compiler output.I recognize that this may be an hxcpp issue, but I thought I'd start here. Here's the transcript, though I've left off the long series of complaints about
Std.is
being deprecated.Thanks for looking at this. =thom