diff --git a/README.md b/README.md index 9d431c1..80c9859 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ MinGW: `pacman -S mingw-w64-x86_64-sqlite3` 6. To build library use tasks `build_static_lib[_dbg]` or `build_shared_lib[_dbg]` +7. If you use tsqlite as static library, add `LINKER_LIBS` from tsqlite `project.config` to your project. ## Usage ```c diff --git a/project.config b/project.config index fb681ce..423cab7 100644 --- a/project.config +++ b/project.config @@ -46,7 +46,7 @@ case "$OS" in SHARED_LIB_FILE="$PROJECT.dll" INCLUDE="$INCLUDE " # example: "-lSDL2 -lSDL2_image" - LINKER_LIBS="-lsqlite3" + LINKER_LIBS="-luuid -lsqlite3" ;; LINUX) EXEC_FILE="test" diff --git a/tests/main.c b/tests/main.c index ab32f33..e1313e7 100644 --- a/tests/main.c +++ b/tests/main.c @@ -46,7 +46,7 @@ Result(void) test_connection(){ printf("ROW(%i):", st->result_row); for(i32 i = 0; i < column_count; i++){ try_void(tsqlite_statement_getResult_str(st, &cell_str)); - printf(" [%i]='"FMT_str"'", st->result_col, str_expand(cell_str)); + printf(" [%i]='"FMT_str"'", st->result_col, str_unwrap(cell_str)); } printf("\n"); };