https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109904
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to gary.wh...@colostate.edu from comment #6) > So using -ldl seems really quirky. Doesn't seem to work for generating > 32-bit executables. Plus, not working at all on my second machine. Is > there a better solution? Yes use a differently built gcc where libgomp does NOT depend on dl* functions. Again this is not the right place to report these issues, the correct place is where you got the binary GCC from. In your case that would be https://github.com/brechtsanders/winlibs_mingw/issues .