LNK 2019 Error when importing third party lib (Mini UPnP)
I'm trying to allow users to host their own multiplayer games without changing the port forwarding on their router. Thanks to this AnswerHub thread, I'm trying MiniUPnP. In order to add this to my project, I compiled the MiniUPnP project using this tutorial: https://wiki.unrealengine.com/Linking_Static_Libraries_Using_The_Build_System. I made sure to set the project to export as a .lib and as a multi-threaded DLL. I created two lib files, miniupnpc.x64.lib and miniupnpc.x86.lib (just in case). They're different sizes so clearly the project understands the x64 configuration.
Next, I moved to Unreal, creating the ThirdParty folder as described in the tutorial (including Libraries and Includes folders). I've added MiniUPnP to PublicDependencyModuleNames and created MiniUPnP.Build.cs. I believe I've done all of this correctly because if I remove any of these steps, Unreal gives me a compile-time error on #include "miniupnpc.h". As it is, it reads the includes perfectly but gives me Error LNK2019: unresolved external symbol on each method I call from the MiniUPnP library. I assume this is because something is wrong with the .lib file so it's having trouble reading it but I wouldn't know what. I've double checked every step in the tutorial and every AnswerHub question I could find but no dice. Anyone know what I'm missing? Or any other libraries that have a similar function?
Here's my MiniUPnP.Build.cs file if anyone needs it:
Follow this question
Once you sign in you will be able to subscribe for any updates here