---- On Sun, 02 Jun 2019 23:04:17 -0400 sisyphus <[email protected]> wrote ---- Rob,
> I grabbed https://musl.cc/x86_64-w64-mingw32-native.zip. > Just noticed that decimal-float is disabled. (I need --enable-decimal-float). I could enable this and rebuild, perhaps tomorrow, but keep in mind that all the source code and scripts are public so you can feel free to customize it to your needs as well. Message me off-list if you'd like me to do so for you. > Other than that, it's odd that libgcc_s_seh-1.dll is in the lib > folder.Usually, it's in the bin folder as it's often required at runtime.I > think libquadmath-0.dll has a runtime dependency on it - the attached > 'demo.c' program certainly does. Thanks; I've reproduced this using your build command, however if you link it statically, e.g. "-static" for everything or "-Wl,-Bstatic -lquadmath -Wl,-Bdynamic" for just quadmath, then it works (see attached screenshot). > So I copied libgcc_s_seh-1.dll to the bin directory, but then the demo > program crashes at runtime, throwing up an "Application Error" pop-up that > complainins: > "The application was unable to start correctly (0xc0000005)." > IIRC, that usually means that there's an architecture incompatibility.Did I > download the wrong compiler ? I'm on 64 bit Windows 7, building demo.exe in > the cmd.exe shell. You definitely have the correct toolchain. When I built with "gcc -o test-shared test.c -lquadmath" and attempted to run it, the result was "Need libquadmath-0.dll", and copying that adjacent to test-shared.exe resulted in (as you said) "Need libgcc_s_seh-1.dll". Providing that reproduces the crash. > I built demo.exe by running:gcc -o demo.exe demo.c -lquadmath > The build works fine - the only problem is the demo.exe runtime crash. See above for a workaround. Maybe someone else can suggest a fix? ZV _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
