Static and Dynamic/Shared Linking with MinGW
Please, have a look at ld and WIN32 (cygwin/mingw). Especially, the direct linking to a dll section for more information on the behavior of -l flag on Windows ports of LD. Extract: For instance, when ld is called with the argument -lxxx it will attempt to find, in the first directory of its search path, … Read more