delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/30/13:58:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <steven DOT obrien2 AT ntlworld DOT com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019