dll linking

There’s no problem the target being a library - it doesn’t have to be an exe.

The important question is: what are you actually doing and what is the error you’re getting?