Reputation: 30015
So I am writing a plugin that will be using some .dll
.lib
packages. I've successfully got the plugin's Build.cs
to include the .lib
but it wont compile. I get an external symbol not found
error that just wont go away. I've placed the .dll
at all the locations I can think of where the linker should pick it up to no avail (Binary folders in and out of the plugin, (Win64 and "ThirdParty")), Public and Private Folders in the plugin, project root, you name it.
Does anyone know how to link a .dll
for use in a plugin? (fyi, I just want to expose part of the .dll
to Blueprints or use them in C++ functions that get exposed to Blueprints).
Upvotes: 3
Views: 6477
Reputation: 595
How do you know that your Build.cs includes the .lib file?
Also, you can not include just every lib file, it has to be compiled with the correct compiler options or the linker will not like it (see here). Adding DLLs is more complicated than adding libs, because you have to do it at runtime: https://wiki.unrealengine.com/Linking_Dlls
Upvotes: 0