Error LNK2019

Hello, I’m having a problem using an external library that a friend of mine coded externally to unreal engine.

I have created a folder for the header files and another folder for the .lib files. I’m able to import the .h file without errors into my code but when I try to access a function inside the library I get the error LNK2019.

This is what I’m using in the build.cs file:

string LibrariesPath = Path.Combine(ThirdPartyPath, "TTS", "Libraries");

PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "libtts-conversion.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "libvtapi.lib"));

PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "TTS", "Includes"));

There probably should be a little bit more information around this to be able to help you out better, but just a first thought that springs to mind: is this being inserted in the same API module you’re trying to access it from?

I’m coding a blueprint function library and including the paths in the build.cs file of that library.
Someone told me to lell my friend to use extern C linkage and now the error I get is LNK1143. I think the error means the library I’m importing is corrupted, but it’s weird, because I know it works outside of Unreal Engine.