HxGodot/hxgodot

scons build is failing

alexeychikk opened this issue · 3 comments

scons platform=windows target=debug is failing for me
Reproducible here https://github.com/alexeychikk/hx-godot-squash-the-creeps
Haxe 4.3.3
The error is:

Error: World2D.cpp
./src/godot/World2D.cpp(409): error C2039: 'gdextension_interface_object_free_instance_binding': is not a member of 'godot::internal'
C:\Users\alexd\AppData\Roaming\haxe\haxelib\hxgodot\git\src\godot_cpp/godot.hpp(38): note: see declaration of 'godot::internal'
./src/godot/World2D.cpp(409): error C3861: 'gdextension_interface_object_free_instance_binding': identifier not found  

When I roll back hxgodot to 021911d - it doesn't fail anymore.

I dont quite understand?

It should be defined there:

Try deleting the the folders in your bin/*-folder. Then clear the hxcpp cache by running haxelib run hxcpp cache clear and try a fresh compile

My bad, I was using lix and haxelib at the same time. scons was using the old version from haxelib