Hey guys I have some questions to You connected with including sql precompiled binaries or sql libraries to my c++ code. First of all I tried to include just a library from the https://www.sqlite.org/download.html (simple - #include "sqlite3.h") after adding my .h file to the properties, give a path to it. Then I copy-pasted a very very simple part of code from http://www.tutorialspoint.com/sqlite/sqlite_c_cpp.htm and I got errors like "function sqlite3_open... ,sqlite3_free are not defined" or something like that, so algorithm doesnt work. Then I read about adding to my source code sqlite precompiled binaries. I did it but, theses files are ".c" and my project is written in c++. So when I changed in properties of these ".c" files to compile them like a c++ (otherwise compiling as C, I get: "Error 10 error C1853: 'Debug\mutualcepepe.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) ") I get a lot of errors like - Error 3 error C2440: '=' : cannot convert from 'void *' to 'char *' - Error 4 error C3861: 'sqlite3_malloc64': identifier not found
I spent a few hours, and still can't go further with my project without using sqlite3 in it. Hope that someone will help me, if I wasn't clear in something above please ask. Thank You in advance!