http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48881

           Summary: Dynamic link to libstdc++-6.dll / libgcc_s_sjlj-1.dll
                    produces broken binaries
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: astr...@cendio.se


We have been using GCC 4.4.3 with MinGW, producing binaries for Win32,
with good results. After upgrading to 4.5.2, libstdc++-6.dll and
libgcc_s_sjlj-1.dll have been added, but linking dynamically to these
does not work: All binaries crashes immediately at startup. Simply
deleting the DLL files from the build environment avoids the dynamic
link, and the binaries works. We are configuring gcc with:

./configure \
    --prefix=/usr --mandir=/usr/share/man \
    --target=i686-pc-mingw32 --disable-multilib \
    --with-sysroot=/usr/i686-pc-mingw32/sys-root \
    --disable-nls --disable-win32-registry \
    --without-included-gettext \
    --with-gnu-as --with-gnu-ld \
    --enable-sjlj-exceptions \
    --enable-version-specific-runtime-libs \
    --enable-threads=win32 --enable-languages=c,c++

Reply via email to