undefined symbol for all non-variant godot types.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By flabbergaster

I’m testing some simple code on GDNative with C to get more comfortable with it, and I’ve encountered a strange problem.

Basically, every single function I’ve tried from the api that involves a non-variant type, such as dictionaries and vector2s compiles just fine, but when linking through the engine it returns a error like this:

ERROR: open_dynamic_library: Can't open dynamic library: /home/<myuser>/hobby/Chess/lib/bin/libengine.so. Error: /home/<myuser>/hobby/Chess/lib/bin/libengine.so: undefined symbol: godot_variant_new_vector2

I’m not that advanced a C programmer neither do I know enough about the inner workings of the engine, but it appears that the api itself doesn’t match the function names on the godot_headers repositiory.

Try asking on Discord or IRC (#godotengine-gdnative @ chat.freenode.net), it may be more active than this place for GDNative questions.

Calinou | 2020-12-14 00:18