http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51468
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-08 18:46:13 UTC --- The libraries you're trying to use are nothing to do with GCC, talk to the MinGW people, or to the person who wrote that dlfcn wrapper - it's nothing to do with GCC. If you have the libraries installed and you use the correct -L option it will work, but if you do it wrong it won't work, that's not GCC's fault.