I'm making a dll that requires sqlite in c++.
I have intergrated the sqlite header file (sqlite3.h) and i have added the library in the external dependacies. I have no synatax errors but when i try to compile the project i get the following LNK2019 errors:
"error LNK2019: symbole externe non résolu sqlite3_close référencé dans la fonction "void __cdecl DisonnectDB(bool,struct sqlite3 *)" (?DisonnectDB@@YAX_NPEAUsqlite3@@@Z) C:\Users\Akash\Downloads\Learn Curve\Freelance\Travis\sana\Sana\Sana.obj Sana "
"error LNK2019: symbole externe non résolu sqlite3_column_text référencé dans la fonction "wchar_t const * __cdecl getTableData(struct sqlite3 *)" (?getTableData@@YAPEB_WPEAUsqlite3@@@Z) C:\Users\Akash\Downloads\Learn Curve\Freelance\Travis\sana\Sana\Sana.obj Sana"
I have tried to do the same procedure in a test console application and i was able to compile with no errors so i am cofident that the issues is not with the visibility of either the sqlite library or the my sqlite header file.
Other questions on stack overflow are not specifique to how dll interact with static libraries.
My question is : Heeeeelllpppp!!! Is there any additional configurations necessary to use sqlite library in a dll as opposed to the use in a console application? How can i fixe the compile time LNK2019 error?
Aucun commentaire:
Enregistrer un commentaire