HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

scons build is failing #60

Closed alexeychikk closed 11 months ago

alexeychikk commented 11 months ago

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  
alexeychikk commented 11 months ago

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

dazKind commented 11 months ago

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

alexeychikk commented 11 months ago

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