This is the mail archive of the
mailing list for the Cygwin project.
Re: Share exception between shared lib and an application...
- From: Steven O'Brien <steven dot obrien2 at ntlworld dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 30 Mar 2003 20:00:59 +0100
- Subject: Re: Share exception between shared lib and an application...
On Sun, 30 Mar 2003 18:22:20 +0200, Vaillant Etienne wrote:
> But I have a problem : exceptions between shared lib and an
> application isn't support by Cygwin...
> To verify this, I made the following exemple :
Etienne, you don't say how you compiled or linked your example. If the
shared library code is in shared.cpp and the main code is in main.cpp,
then you can build the example with:-
$ g++ -g -shared -o shared.dll shared.cpp
$ g++ -g -o mytest main.cpp -L. -lshared
When I do this, and run the program, I get:
.. as expected. No core dump. So, the problem may be that you have made
a mistake in your compile/link commands, or maybe you have an
out-of-date cygwin/gcc/binutils installation. I am using:
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html