It is difficult to follow the contents due to the formatting. Could you please clean that up?
At the very least, you are attempting to link against the wrong thing. You do not link against the library, you are supposed to link against the import library (similar to how on Darwin you use TBDs rather than the dylib).
There is no need to add the library suffix, thus you should not be adding the .dll
.
Finally, your flags are incorrect. -L
is for library search paths, not for linking. I assume that you do not have a directory named Tolk.dll
next to the location that you are building from (as it would be a relative path, and thus would be looked up relative CWD).
Once the display is corrected, it might be easier to identify what is going on.