在 2019/11/23 4:45, Arthur Girardi 写道: > Hello, > > I'm building the WIC Viewer using Direct2D[1] sample from Microsoft, > converted to C, and I'm getting some strange SIGSERV at the function > ID2D1HwndRenderTarget_GetSize(m_pRT) when the program is compiled with gcc > 9.x on a x86_64 system. No problem occurs when compiled with any gcc 8.x > x86_64 or gcc 9.x i686. All builds using MSYS2 toolchain packages. >
Please provide the exact commands that you used to invoke G++. I compiled the sample program with the following commands and ran it but observed no segmentation faults: ``` windres WicViewerD2D.rc -o WicViewerD2D.o g++ -municode -mwindows *.cpp *.o \ -ld2d1 -lwindowscodecs -lole32 \ -o WicViewerD2D.exe ``` -- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public