Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 30 Mar 2003 20:00:59 +0100 From: "Steven O'Brien" To: cygwin AT cygwin DOT com Subject: Re: Share exception between shared lib and an application... Message-Id: <20030330200059.6c0e0d19.steven.obrien2@ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: $ ./mytest Invalid Argument .. 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: cygwin 1.3.22-1 gcc 3.2-3 binutils 20030307-1 Regards, Steven -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/