Comment 9 for bug 195407

Revision history for this message
Michael Hofmann (mh21) wrote :

The attached tar file contains a test case:
- unpack with "tar -xzf mingw-shared-dll-testcase.tgz"
- make with "make"
- run the test cases:
  - ./main - linux test case, prints "Exception: catch me"
  - ./main.exe (uses wine) - statically linked runtime library, should print "Exception: catch me", but fails with "terminate called after throwing a..."
  - ./main-shared.exe (uses wine) - dynamically linked runtime library, prints "Exception: catch me"
  - ./main-shared2.exe (uses wine) - dynamically linked runtime and stdc++ library, prints "Exception: catch me", is a bit smaller

I'm not 100% sure that the dynamic linking to the stdc++ library (for main-shared2.exe) is done correctly in the example, because the reduction in executable size is less than what I would expect.
Nevertheless, it really is a bit smaller, depends on the stdc++ DLL and works as expected, so maybe I'm just paranoid.