Help in compiling C++ code external to UE4 (it's a sort of library)

I see.
In your current setup, do you get unresolved externals while accessing the library from the same module ? Because otherwise, you can’t cross dll boundaries without an export.