X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=tTq txeK0iGbjAQR2NPFi3BbEPG9e1XCv53aPy988jB3Ww6OkXTUpwnV5t4p95qzb0EE rQIViNupoMcNjyg85SxjF6aMmQpg7hGTnKtbNSstz5H7kBGRghTFOqXVLsdvMrJC 3RQwhocSQrH+pDIxQ3Z5lecP3/fDaWACkabf6mYg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=PHMhsbDyx 5Mv1i4+gDC97bWpd+U=; b=A/5ZZQoiDLPp/dZrAZA5efRrCnsEQK5xVBAspkB6x 7QjnuFNaoEW4Tlauzas/P8fZzxKTSHXrU9nPxaciw1J5srv7i7zoMvmp6b3VU73b y02E2i+16KE1f3U4NrP9YjpF9HJg01r+/GVQMG9GAzEP1A+8wifAnNSSho3cOOZT QM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_COUK,KAM_FROM_URIBL_PCCC,SPF_PASS autolearn=no version=3.3.2 X-HELO: out.ipsmtp2nec.opaltelecom.net X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CWAQC8qBBV/7JU0lUNT4NYWsZThSw/BQOBfwEBAQEBAYVQQD0WGAMCAQIBWAgBAYg4rVSbAAsBAQEaBJAzhBcFjkGFfZophBBvAYJCAQEB X-IPAS-Result: A2CWAQC8qBBV/7JU0lUNT4NYWsZThSw/BQOBfwEBAQEBAYVQQD0WGAMCAQIBWAgBAYg4rVSbAAsBAQEaBJAzhBcFjkGFfZophBBvAYJCAQEB Message-ID: <5510A9AB.7020607@tiscali.co.uk> Date: Tue, 24 Mar 2015 00:02:51 +0000 From: David Stacey User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: static vs. shared linking Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes I've been having difficulty building poco-1.6.0 for Cygwin for some time. I've managed to produce a test case that shows the problem: https://dl.dropboxusercontent.com/u/119453582/Cygwin/crashtest.tar.xz This archive contains source files that produce a very simple library. When linked statically, the code works fine. However, when linked as a shared DLL, the test crashes with a core dump. The behaviour is identical on x86 and x86_64 architectures. Have I made a stupid error in the compilation of the shared case, or is something more interesting going on? Dave. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple