objectbox / objectbox-c

C and C++ database for objects and structs
https://objectbox.io/
Apache License 2.0
194 stars 35 forks source link

erro try to run first objectbox c++ code #39

Open benzidane027 opened 2 months ago

benzidane027 commented 2 months ago

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