From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13165 invoked by alias); 4 Aug 2008 14:40:37 -0000 Received: (qmail 13149 invoked by uid 22791); 4 Aug 2008 14:40:36 -0000 X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 04 Aug 2008 14:39:57 +0000 Received: by qw-out-1920.google.com with SMTP id 5so128446qwc.14 for ; Mon, 04 Aug 2008 07:39:55 -0700 (PDT) Received: by 10.214.11.19 with SMTP id 19mr8712540qak.43.1217860795101; Mon, 04 Aug 2008 07:39:55 -0700 (PDT) Received: from ?192.168.3.101? ( [71.0.189.248]) by mx.google.com with ESMTPS id h8sm7687290wxd.11.2008.08.04.07.39.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Aug 2008 07:39:54 -0700 (PDT) Message-ID: <489714C9.6010109@gmail.com> Date: Mon, 04 Aug 2008 14:40:00 -0000 From: Barry Andrews User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Mixing exception handling libraries with non exception handling Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00031.txt.bz2 Hi All, I have a 3rd party library ( which I'll call X ) which I believe was compiled with exception handling disabled. Then I have my C++ library which does have exception handling. When I load the X library first into a process, then load my library in the same process, exception handling becomes disabled and the abort() function is called. from unwind-dc2.c if I try to throw an exception in my code. This only happens if I load the X library first. I don't have any control over the X library, i.e. I cannot recompile it. Has anyone run into this before? Is there some compiler option in gcc or #define I should have to keep exception handling enabled when I load my library? It appears that this is some sort of runtime thing. Many many thanks for any guidance! -B