I’m at work.
But the file i was trying to include “sqlite3.h” from was throwing the errors.
I have a ThirdParty folder with the following structure.
in there I have SQLite3
SQLite/include - contains sqlite3.h
SQLite/lib - contains sqlite3.lib
In my Build.cs
PublicDependencyModuleNames.AddRange(new string] { “Engine”, “Core”, “CoreUObject” });
string ThirdPartyPath = Path.GetFullPath( Path.Combine( ModulePath, “…/…/ThirdParty/” ) );
string LibrariesPath = Path.Combine(ThirdPartyPath, “SQLite3”, “lib”);
string IncludesPath = Path.Combine(ThirdPartyPath, “SQLite3”, “include”);
string LibraryName = Path.Combine(LibrariesPath, “sqlite3.h”);
PublicAdditionalLibraries.Add(LibraryName);
PublicIncludePaths.Add(IncludesPath);
This is what i have but for some reason i get the LINK2019 error, so the question is what is causing this error.
In a function i have TestDBConnection() {
sqlite3* db;
int rc = sqlite3_open(“PathToDB”, &db);
…
}
and in the function i am throwing and unresolved external symbol error on both of them.
This is a very weird error cause I am able to include the sqlite3.h library in the .cpp file, so the question is what the heck am i missing. Also will this cause packaging issues later on?