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.

** Attachment added: "mingw-shared-dll-testcase.tgz"
   http://launchpadlibrarian.net/18450380/mingw-shared-dll-testcase.tgz

-- 
mingw-4.2 requires shared lib{gcc,stdc++} for cross-dll exceptions
https://bugs.launchpad.net/bugs/195407
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to