https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109904
--- Comment #6 from GARY.WHITE at ColoState dot edu <Gary.White at ColoState dot edu> --- 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? Gary C. White, CWB(r) Professor Emeritus Department of Fish, Wildlife, and Conservation Biology 10 Wagar Colorado State University Fort Collins, CO 80523 (515)450-2768 Mobile gary.wh...@colostate.edu https://sites.warnercnr.colostate.edu/gwhite/ he/him/his See where we are! "Leadership is a privilege to better the lives of others. It is not an opportunity to satisfy personal greed." Mwai Kibaki -----Original Message----- From: pinskia at gcc dot gnu.org <gcc-bugzi...@gcc.gnu.org> Sent: Thursday, May 18, 2023 12:33 PM To: White,Gary <gary.wh...@colostate.edu> Subject: [Bug libgomp/109904] linking with -static flag generates undefined references ** Caution: EXTERNAL Sender ** https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109904 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to gary.wh...@colostate.edu from comment #3) > Linking with -ldl fixed the issue Where is there documentation of -ldl? -l says to link against a specified library in this case libdl; libgomp needs to open a library at runtime due to offloading support and dl* functions do that and for windows dl* functions are implemented in libdl-win32. But as I mentioned you should be asking where you got the binary toolchain instead of here. -- You are receiving this mail because: You reported the bug.