I’m trying to use the SQLiteSupport module.
I added as a dependency module for my game module. I’m able to use it in my code, but when I compile my game I get this error:
error C1083: Cannot open include file: 'SQLiteSupportPrivatePCH.h': No such file or directory Engine\Source\Runtime\SQLiteSupport\Public\SQLiteDatabaseConnection.h
What is happening is that SQLiteDatabaseConnection.h is in the module’s Public folder and is including SQLiteSupportPrivatePCH.h that is in the module’s Private folder. So in build time it’s not found.
I tried by adding the following code to SQLiteSupport.Build.cs
But still, it won’t find the header.
I had to change SQLiteDatabaseConnection.h from:
and managed to compile my project that way.
But it’s odd. Why is Epic trying to import the private header without adding the private include path to the module Build.cs?
Why it’s not working by adding the private include path?
What I’m doing wrong?