objectbox / objectbox-c Goto Github PK
View Code? Open in Web Editor NEWC and C++ database for objects and structs
Home Page: https://objectbox.io/
License: Apache License 2.0
C and C++ database for objects and structs
Home Page: https://objectbox.io/
License: Apache License 2.0
I'm looking to compile ObjectBox without including the examples and test apps. Essentially, I want to keep only the ObjectBox library in my environment.
It would be great if you could consider adding an option to remove examples when using the FetchContent_MakeAvailable command.
This way, users would have the flexibility to exclude example programs from the build process, reducing unnecessary build time and keeping the project clean and concise
If I re-create transaction for same table right after previous is closed, I always get warning [WARN ] Skipped low-level close of cursor (write, TX #xxx alive)
. Imagine there is following code:
auto txn = obx_txn_begin(store);
auto cursor = obx_cursor_create(txn, 1);
obx_cursor_put(cursor, <something>);
obx_cursor_close(cursor);
obx_txn_close(txn);
txn = obx_txn_begin(store);
cursor = obx_cursor_create(txn, 1);
I will produce this warning unless there will be timeout before starting second transaction. I believe there should be convenience function to wait for transaction is completed for this case.
when I compile the example by running: g++ main.cpp -I. -std=c++11 -lobjectbox
error:no matching function for call to 'obx::Box::put()
obx_id id = box.put({.text = "Buy milk"})
^
int main()
{
obx::Store store(create_obx_model());
obx::Box box(store);
obx_id id = box.put({.text = "Buy milk"}); // error code
std::unique_ptr task = box.get(id); // Read
if (task) {
task->text += " & some bread";
box.put(*task); // Update
box.remove(id); // Delete
}
return 0;
}
Hi,
Unfortunately, there is no explanation about relations in ObjectBox documentation for c++ .
Please explain how we should use to-one and to-many relations in ObjectBox c++ ?
Thanks
This is my database.fsb file
table Author {
/// objectbox:id
id:ulong;
text:string;
}
table Book{
/// objectbox:id
id: ulong;
name: string;
/// objectbox:relation(name=authors,to=Author)
authors:ulong;
}
What type I must use for authors
in Book
table to make a many-to-many relation between book and authors?
The readme file Examples section has this link text:
C, with generated code - plain C, using code generated by objectbox-generator
But it links to the cpp-gen/ directory instead of the c-gen/ directory.
🚨 First, please check:
Describe the bug
When I add include and lib to the project in windows and using Visual Studio 2013 to compile it I get an error which says it could not find "flatbuffers/flatbuffers.h"
Basic info (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
Just try to compile the code in a Visual C++ project.
Expected behavior
A clear and concise description of what you expected to happen.
Just I would like it to compile.
Code
If applicable, add code to help explain your problem.
Logs, stack traces
If applicable, add relevant logs, or a stack trace.
Additional context
Add any other context about the problem here.
Describe the bug
When I try the example c-cursor-no-gen
, it is success to insert a new task, but print a coredump error in the end.
Basic info (please complete the following information):
To Reproduce
gdb information as following:
tanshuil@B013741:~/github/lymslive/lyObjectBox/build/_deps/objectbox-build/examples/c-cursor-no-gen$ gdb ./objectbox-c-examples-tasks
gdb: /usr/local/lib/libuuid.so.1: no version information available (required by /lib/x86_64-linux-gnu/libbabeltrace-ctf.so.1)
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./objectbox-c-examples-tasks...
(No debugging symbols found in ./objectbox-c-examples-tasks)
(gdb) r buy more milk
Starting program: /home/tanshuil/github/lymslive/lyObjectBox/build/_deps/objectbox-build/examples/c-cursor-no-gen/objectbox-c-examples-tasks buy more milk
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Using libobjectbox version 0.18.0, core version: 3.4.0-2022-10-31 (tree)
New task: 2 - buy more milk
free(): double free detected in tcache 2
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007fffff462859 in __GI_abort () at abort.c:79
#2 0x00007fffff4cd29e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fffff5f7298 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007fffff4d532c in malloc_printerr (str=str@entry=0x7fffff5f95d0 "free(): double free detected in tcache 2") at malloc.c:5347
#4 0x00007fffff4d6f9d in _int_free (av=0x7fffff62cb80 <main_arena>, p=0x8029a50, have_lock=0) at malloc.c:4201
#5 0x00007fffff6e6627 in obx_txn_close () from /home/tanshuil/github/lymslive/lyObjectBox/build/_deps/objectbox-download-src/lib/libobjectbox.so
#6 0x0000000008005b5c in do_action_new ()
#7 0x00000000080057f9 in main ()
(gdb)
When I develop some application with the objectbox
lib, I hope to have a separate tool to verify the records (objects) saved in the database, somthing like that for SQLite, to browse and lookup what table(entities) and records existed in current database file.
I have glanced at the repos in github.com/objectbox
, but not found such a tool. Compare to 'objectject-generator` as pre-build tool, such a post-browse tool is also useful.
Maybe it is possible to write one using objectbox
lib, while I think it is so common requirement, I wonder is there any project already provides such tool.
I want to use objectbox but project limitations don't allow the inclusion of DLL dependencies. Is it possible to provide a .LIB file? Thank you.
Start with a clear and concise description of what problem you are trying to solve.
A clear and concise description of what you want to happen.
Describe alternatives you've considered
Add any other context (e.g. platform or language) about the feature request here.
Hi,
Please, add conan package manager support.
I open an issue/request there:
conan-io/conan-center-index#11235
It will open the doors to we use on our projects like a dependency.
Thanks.
bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh)
Base config: OS Darwin and arch arm64
Adjusted OS to Macos
Using configuration Macos::arm64
Error: the platform configuration Macos::arm64 is unsupported.
You can select the configuration manually (use --help for details)
Possible values are:
Chinese version:
在XinYi-XY1100平台中增加BoAT-X-Framework的功能支持选项
English version:
Increase the function support option of BoAT-X-Framework in XinYi-XY1100 platform
Here better use "add" rather than "increase"
Kindly suggest to change to
Add a new option to support BoAT-X-Framework in XinYi-XY1100 platform
Hello, objectbox:
We have a device that not support hard-float, but we really want to use objectbox. Can you please provide shared library or static library for armv7? Thank you very much.
( The chip on our device is Hi3516, and the system is linux.
Windows-side DLL loading requires additional runtime libraries
Is possible to make it C# compatible to Xamarin/Unity 3D?
Describe the bug
hello guys.
this the first time i am using objectbox with c++ that give me that error :
Basic info (please complete the following information):
To Reproduce
See error
Code
#include "main.h"
#include "objectbox.hpp"
#include "objectbox-model.h"
#include "task.obx.hpp"
#include "stdio.h"
using namespace std;
int main()
{
printf("Using ObjectBox version %s\n", obx_version_string());
obx::Store store(create_obx_model());
return
0
}
Logs, stack traces
Severity Code Description Project File Line Suppression State Details
Error LNK1120 4 unresolved externals C:\Users\myPc\source\repos\pro_one\out\build\x64-debug\pro_one C:\Users\myPc\source\repos\pro_one\out\build\x64-debug\pro_one.exe 1
Describe the bug
I just test transfer large data from another database to objectbox, where each record has about 3000 fields.
When I have put about 40000 records into objectbox, and the file objectbox/data.mdb
reach about 1GB size, then it refuse to put any more new object.
Throw obx::DbException
with wath() message: Could not put.
And print Storage error(code -30792)
Basic info (please complete the following information):
Is the c/c++ library going to get synchronization any time soon?
Describe the bug
Could not create ObjectBox - please check configuration: Could not open database environment; please check options and file system (13) [recovered]
Basic info (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
go test
Expected behavior
Code
Logs, stack traces
panic: Could not create ObjectBox - please check configuration: Could not open database environment; please check options and file system (13) [recovered]
panic: Could not create ObjectBox - please check configuration: Could not open database environment; please check options and file system (13)
goroutine 51 [running]:
testing.tRunner.func1(0xc00012e700)
/usr/lib/go-1.13/src/testing/testing.go:874 +0x3a3
panic(0x665820, 0xc000200540)
/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2
github.com/objectbox/objectbox-go/objectbox.(*Builder).Build(0xc00021c4c0, 0xc0002047e0, 0xc00021c4c0, 0x0)
/home/ihbing/go/pkg/mod/github.com/objectbox/[email protected]/objectbox/builder.go:133 +0xdc
souobjectboxparser/objectboxparser.initObjectBox(0xc00012b600, 0x12, 0xc000220000)
/mnt/f/task/soul/src/souobjectboxparser/objectboxparser/objectboxparser.go:66 +0xa6
souobjectboxparser/objectboxparser.ParseMDBData(0xc000220000, 0x1d000, 0x1d200, 0x0, 0x0)
/mnt/f/task/soul/src/souobjectboxparser/objectboxparser/objectboxparser.go:34 +0x158
souobjectboxparser/objectboxparser.Start()
/mnt/f/task/soul/src/souobjectboxparser/objectboxparser/objectboxparser.go:17 +0xc5
souobjectboxparser/objectboxparser.TestStart(0xc00012e700)
/mnt/f/task/soul/src/souobjectboxparser/objectboxparser/objectboxparser_test.go:6 +0x20
testing.tRunner(0xc00012e700, 0x6e7ee0)
/usr/lib/go-1.13/src/testing/testing.go:909 +0xc9
created by testing.(*T).Run
/usr/lib/go-1.13/src/testing/testing.go:960 +0x350
exit status 2
Additional context
Hi, I am working on an Android NDK project which will use objectbox-c. Can you provide prebuilt libraries for Android as well in addition to the following?
Describe the bug
A lots of files in v0.20.0.tar.gz are same as those in v0.19.0.tar.gz
Basic info (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
cmake gets 0.20.0 so file.
Hi,
I think that you can improve the docs with these topics:
Thanks.
hello team,
first, thanks for providing us this nice framework, it's really interesting to work with.
then, I have 2 questions, maybe it's a dumb ones:
that's all for now.
Thank you very much ^^
Ross.
I'd love to use ObjectBox in a multi-platform Android/iOS app (C++, QT/QML stack), as it looks to be pretty much perfect for my use case. But. It is unclear to me if that is supported - the main library/project says that it is, but the C/C++ wrapper does not mention so, and there are no binaries on the releases page for Android or iOS.
There's #4, but in the replies, it is not clear to me what "Android APIs also include the C interface" means. Am I supposed to get the Java jars from the gradle repository, and those would expose the C interface?
So effectively, this is both a question, as well as a request for clarification in the readme/releases if ObjectBox can be used from Android and iOS. If yes, then a tutorial/tips on how to do so, would be very much appreciated.
The objectbox website as well as the repositories do a very good job of obfuscating the fact that objectbox is a closed source product. Please make this clear in the binding repos and on the site. It is very misleading.
I had to search through closed issues to find the answer.
Build the demo program of XY1100, generate. bin file for download
Better add Space notation after the word "generate"
So the sentence will be look like
Build the demo program of XY1100, generate .bin file for download
Dear ObjectboxTeam,
i tried setting up ObjectBox for c++ as told in the manual.
After changing CmakeLists.txt to find the library i now keep getting undefined reference errors
This is my Cmakelists.txt
cmake_minimum_required(VERSION 3.22)
project(objectboxtest)
set(CMAKE_CXX_STANDARD 20)
include(FetchContent)
FetchContent_Declare(
objectbox
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
GIT_TAG v0.17.0
)
FetchContent_MakeAvailable(objectbox)
include_directories(cmake-build-debug/_deps/objectbox-sync-download-src/include)
FetchContent_Declare(
flatbuffers
GIT_REPOSITORY https://github.com/google/flatbuffers.git
GIT_TAG v2.0.0
)
FetchContent_MakeAvailable(flatbuffers)
file(COPY ${CMAKE_BINARY_DIR}/_deps/flatbuffers-src/include/flatbuffers
DESTINATION "_deps/objectbox-sync-download-src/include/")
add_executable(objectboxtest main.cpp main.h objectbox-model.h tasklist.obx.cpp tasklist.obx.hpp)
target_link_libraries(objectbox INTERFACE objectbox)
And this is the error i keep getting
====================[ Build | objectboxtest | Debug ]===========================
/opt/clion-2022.1.3/bin/cmake/linux/bin/cmake --build /home/jonas/CLionProjects/objectboxtest/cmake-build-debug --target objectboxtest -j 1
[1/1] Linking CXX executable objectboxtest
FAILED: objectboxtest
: && /usr/bin/g++ -g CMakeFiles/objectboxtest.dir/main.cpp.o CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o -o objectboxtest && :
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::(anonymous namespace)::throwLastError(int)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:78: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:81: undefined reference to `obx_last_error_message'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:86: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::(anonymous namespace)::checkErrOrThrow(int)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:94: undefined reference to `obx_last_error_code'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::(anonymous namespace)::CursorTx::~CursorTx()':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:532: undefined reference to `obx_cursor_close'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::(anonymous namespace)::idVectorOrThrow(OBX_id_array*)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:569: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:578: undefined reference to `obx_id_array_free'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:581: undefined reference to `obx_id_array_free'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::(anonymous namespace)::QCGroup::applyTo(OBX_query_builder*, bool) const':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:697: undefined reference to `obx_qb_any'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:698: undefined reference to `obx_qb_all'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `create_obx_model':
/home/jonas/CLionProjects/objectboxtest/objectbox-model.h:23: undefined reference to `obx_model'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:26: undefined reference to `obx_model_entity'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:27: undefined reference to `obx_model_property'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:28: undefined reference to `obx_model_property_flags'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:29: undefined reference to `obx_model_property'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:30: undefined reference to `obx_model_property'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:31: undefined reference to `obx_model_property_flags'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:32: undefined reference to `obx_model_property'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:33: undefined reference to `obx_model_property_flags'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:34: undefined reference to `obx_model_entity_last_property_id'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/objectbox-model.h:36: undefined reference to `obx_model_last_entity_id'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `OBX_store_options* obx::(anonymous namespace)::checkPtrOrThrow<OBX_store_options>(OBX_store_options*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `OBX_store* obx::(anonymous namespace)::checkPtrOrThrow<OBX_store>(OBX_store*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `OBX_txn* obx::(anonymous namespace)::checkPtrOrThrow<OBX_txn>(OBX_txn*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `OBX_cursor* obx::(anonymous namespace)::checkPtrOrThrow<OBX_cursor>(OBX_cursor*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `OBX_box* obx::(anonymous namespace)::checkPtrOrThrow<OBX_box>(OBX_box*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Options::Options()':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:152: undefined reference to `obx_opt'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Options::~Options()':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:159: undefined reference to `obx_opt_free'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Options::model(OBX_model*)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:164: undefined reference to `obx_opt_model'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Store::Store(obx::Options&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:404: undefined reference to `obx_store_open'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Transaction::Transaction(obx::Store&, obx::TxMode)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:462: undefined reference to `obx_txn_write'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:462: undefined reference to `obx_txn_read'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Transaction::closeNoThrow()':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:500: undefined reference to `obx_txn_close'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::(anonymous namespace)::CursorTx::CursorTx(obx::TxMode, obx::Store&, unsigned int)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:521: undefined reference to `obx_cursor'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Store::~Store()':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:2192: undefined reference to `obx_store_close'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Box<Task>::Box(obx::Store&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:1652: undefined reference to `obx_box'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Box<Task>::put(Task const&, OBXPutMode)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:1795: undefined reference to `obx_box_put_object4'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:1797: undefined reference to `obx_last_error_code'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Box<Task>::remove(unsigned long)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:1844: undefined reference to `obx_box_remove'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/main.cpp.o: in function `obx::Box<Task>::get(unsigned long, Task&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:1721: undefined reference to `obx_cursor_get'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `obx::(anonymous namespace)::throwLastError(int)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:78: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:81: undefined reference to `obx_last_error_message'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:86: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `obx::(anonymous namespace)::checkErrOrThrow(int)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:94: undefined reference to `obx_last_error_code'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `obx::(anonymous namespace)::idVectorOrThrow(OBX_id_array*)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:569: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:578: undefined reference to `obx_id_array_free'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:581: undefined reference to `obx_id_array_free'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `obx::(anonymous namespace)::QCGroup::applyTo(OBX_query_builder*, bool) const':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:697: undefined reference to `obx_qb_any'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:698: undefined reference to `obx_qb_all'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `OBX_store_options* obx::(anonymous namespace)::checkPtrOrThrow<OBX_store_options>(OBX_store_options*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `OBX_store* obx::(anonymous namespace)::checkPtrOrThrow<OBX_store>(OBX_store*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `OBX_txn* obx::(anonymous namespace)::checkPtrOrThrow<OBX_txn>(OBX_txn*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
/usr/bin/ld: CMakeFiles/objectboxtest.dir/tasklist.obx.cpp.o: in function `OBX_cursor* obx::(anonymous namespace)::checkPtrOrThrow<OBX_cursor>(OBX_cursor*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_code'
/usr/bin/ld: /home/jonas/CLionProjects/objectboxtest/cmake-build-debug/_deps/objectbox-sync-download-src/include/objectbox.hpp:105: undefined reference to `obx_last_error_message'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Thank you very much in advance.
Jonas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.