g++, shared/static and exceptions
Lapo Luchini
lapo@lapo.it
Sat Jun 7 13:02:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lapo Luchini wrote:
> Two problems here.
I solved one.. so I auto-reply, "for the archives" 0=)
> The first problem is that the library must be static as libstdc++ isn't
> available as a DLL (that's right? will it be available someday?), but
> this is not a big problem as libtool makes it very easy to use
> "--disable-shared" in the configure.
This is still a "problem" that requires answer ^_^
> The real problem is that the exceptions thrown in the library seems to
> always "dump" the program, and can't be catched in the main (which is
> not in the lirary, of course).
This was an error on my side: "throw new" instead of a simple "throw".
Again, my years passed learning Java did some hard to my C++...
- --
Lapo 'Raist' Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0 - not licensed for commercial use: www.pgp.com
iQA/AwUBPuHiO2iYgizI8lL7EQKwJgCgprEYqsEVm6UwKcX8iNIiy0XgyHAAoKlH
TBz/qAStM8lzgzeDlmwYJ518
=Fsqd
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list