Adding sqlite3 to Solution

  • Thread starter Thread starter Metonimie
  • Start date Start date
M

Metonimie

Guest
Hello,

I have the following project in my VS Solution:

- ReservationDb - Dll library

- ReservationDbTest - Google Test project

I've installed the following package: sqlite3 3.8.8.3 and when I compile my testing project I get the following errors:

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol _sqlite3_close referenced in function "unsigned int __cdecl DestroyComponent(void)" (?DestroyComponent@@YAIXZ) ReservationDbTest C:\Users\Denis\source\repos\ReservationDb\ReservationDbTest\ReservationDb.lib(ReservationDb.obj) 1

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol _sqlite3_open referenced in function "unsigned int __cdecl InitializeComponent(void)" (?InitializeComponent@@YAIXZ) ReservationDbTest C:\Users\Denis\source\repos\ReservationDb\ReservationDbTest\ReservationDb.lib(ReservationDb.obj) 1


Any ideas why this only happens when I compile my testing project? I can successfully compile the ReservationDb project. Thank you!

I can confirm that the nuget package is installed for both solutions.

Continue reading...
 
Back
Top