In an attempt to sus out why gdnative doesnt work on linux, testing interop between C and odin here.
Run ./build_and_run.sh gcc
or ./build_and_run.sh clang
to build and execute both test cases (shared linked vs dlopen).
Success output:
$ ./build_and_run.sh gcc
[mode: dlopen]
loaded libtest.so
executing test_func:
hello from odin without a context
hello from odin
setting callback
calling callback
hello from callback
finished
[mode: linked]
loaded libtest.so
executing test_func:
hello from odin without a context
hello from odin
setting callback
calling callback
hello from callback
finished