Closed gcaplan closed 2 years ago
Looks like a mismatch of C and Go versions: obx_txn_mark_success
is obsolete and was removed from the C API in the latest version; you need to update to the latest Go version (1.6.0).
Thanks, but that doesn't seem to be the issue.
I was running Go 1.7.1.
I've update to the latest versions of Go and the MinGW compiler, but am still seeing the same error:
# github.com/objectbox/objectbox-go/objectbox
c:/users/user/appdata/local/programs/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: $WORK\b002\_x012.o: in function `_cgo_1d5082261c69_Cfunc_obx_txn_mark_success':
/tmp/go-build/cgo-gcc-prolog:134: undefined reference to `obx_txn_mark_success'
collect2.exe: error: ld returned 1 exit status
Looks like a mismatch of C and Go versions
Clarification: C and Go versions of ObjectBox
As someone with a rather shallow understanding of C compilers, how would I resolve this?
To update the ObjectBox Go package you probably need to run go get -u github.com/objectbox/objectbox-go/objectbox
.
This assumes that you already ran the install script or did the manual steps from https://golang.objectbox.io/install#windows (which you indicated you did in the last issue).
Thanks - that solved the problem - I had installed ObjectBox before the new release last week, which appears to have been a breaking change?
Hi
Trying to run the Task demo code from the getting started docs but compile is failing with the following error:
I'm not a low-level developer so please forgive if I'm making a newbie error.
Please advise!