title: LNK2019 error (unresolved external symbol) linking SQLite into DLL
body: <p>I'm making a C++ DLL that requires SQLite.</p>
  <p>I have integrated the SQLite header file (sqlite3.h) and added the library in the external dependencies. I have no syntax errors, but when I try to compile the project I get the following LNK2019 (&quot;Unresolved external symbol [XYZ] referenced from the function …&quot;) errors:</p>
  <blockquote>
  <p><code>error LNK2019: symbole externe non résolu sqlite3_close référencé dans la fonction &quot;void __cdecl DisonnectDB(bool,struct sqlite3 *)&quot; (?DisonnectDB@@YAX_NPEAUsqlite3@@@Z) C:\Users\Akash\Downloads\Learn Curve\Freelance\Travis\sana\Sana\Sana.obj    Sana</code></p>
  <p><code>error LNK2019: symbole externe non résolu sqlite3_column_text référencé dans la fonction &quot;wchar_t const * __cdecl getTableData(struct sqlite3 *)&quot; (?getTableData@@YAPEB_WPEAUsqlite3@@@Z) C:\Users\Akash\Downloads\Learn Curve\Freelance\Travis\sana\Sana\Sana.obj    Sana</code></p>
  </blockquote>
  <p>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 confident that the issue is not with the visibility of either the SQLite library or header file.</p>
  <p>Other questions on Stack Overflow are not specific to how DLLs interact with static libraries.</p>
  <p>Is there any additional configuration necessary to use the SQLite library in a DLL as opposed to the use in a console application?<br />
  How can I fix the compile time LNK2019 error?</p>