snowkit / linc_sdl

http://snowkit.github.io/linc/ Haxe/hxcpp @:native bindings for SDL
Other
30 stars 15 forks source link

Can't compile #4

Closed mattpugner closed 9 years ago

mattpugner commented 9 years ago

I can't seem to get the test to compile. Getting the same error when compiling on Mac and Windows.

Error: ./src/Test.cpp:1571:20: error: no member named 'sym' in 'cpp::Struct<SDL_Keysym, cpp::DefaultStructHandler>'; did you mean to use '->' instead of '.'? int tmp10 = tmp9.sym; HX_STACK_VAR(tmp10,"tmp10"); ^ ->

ruby0x1 commented 9 years ago

Make sure you update to latest versions as newer commits resolved this (try haxelib update linc_sdl)

mattpugner commented 9 years ago

Unfortunately I'm definitely on the latest version of everything. Ran the update anyways as well on both machines just in case. I can compile other linc libraries just fine so my everything else seems good. Any other ideas?

Haxe 3.2.1, hxcpp 3.2.180, and very latest linc_sdl

ruby0x1 commented 9 years ago

maybe try delete the cpp/ folder that was generated and try a clean build, perhaps it's not noticed the changes on the cpp side (unlikely) since the haxe didn't change.

I'll be able to try the test again a bit later but if you check the commit log you'll see the fix for this very issue, so I'm suspicious that it's some invalidated state or a behind git revision still somehow :)

mattpugner commented 9 years ago

Blasted my cpp, still no luck. You're talking about the "missing structAccess on keysysm" commit right? Comparing the file with local is all good. If you could do a quick check of the test on your end, it'd be highly appreciated.