This only proves you did things very wrong. __udivmoddi4 is shipped with libgcc. If you build libgcc, you won’t have that issue.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Liu Hao<mailto:[email protected]> Sent: Wednesday, May 5, 2021 22:39 To: [email protected]<mailto:[email protected]>; Jonas Kvinge<mailto:[email protected]> Subject: Re: [Mingw-w64-public] undefined reference to __udivmoddi4 with GCC 11.1.0 在 5/5/21 6:48 PM, Jonas Kvinge 写道: > Hi > > I'm trying to build with GCC 11.1.0, but getting the following udefined > reference with i686-w64-mingw32.shared. > > x86_64-w64-mingw32.shared works. > > i686-w64-mingw32.shared/gcc-11.1.0.build_.pthreads/../gcc-11.1.0.build_/mingw-w64-v8.0.0/mingw-w64-libraries/winpthreads/src/clock.c:122: > undefined reference to `__udivmoddi4' > > Any idea how to fix it? > > Please test the attached patch. This quad division routine was named `__qdivrem()`. -- Best regards, Liu Hao _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
