delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/16/14:31:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_35
X-Spam-Check-By: sourceware.org
X-Spam-Score: -92.017
Message-ID: <49BEA904.7010903@sh.cvut.cz>
Date: Mon, 16 Mar 2009 20:31:16 +0100
From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= <v DOT haisman AT sh DOT cvut DOT cz>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Porting to GCC 4.3.2
References: <49BCE42F DOT 2040901 AT sh DOT cvut DOT cz>
In-Reply-To: <49BCE42F.2040901@sh.cvut.cz>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Václav Haisman wrote, On 15.3.2009 12:19:
> Hi,
> I am trying to use GCC 4.3.2 to compile log4cplus 1.0.3 source. Compilation
> works but test cases that are using the resulting DLL do not work. The $?
> shell variable ends up with value 5. I used depends.exe on the test case
> executable and it finds all dependencies except DWMAPI.DLL. After some
> digging
> (<http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/bc7a7414-6564-40bb-b8d2-af86345f2bc2/>
> and
> <http://stackoverflow.com/questions/173433/how-to-fix-dwmapidll-delay-load-dependency-under-winxp>)
> my question is: Does the GCC 4.3.2 change how delay loaded DLLs are handled
> or is this problem unrelated to mine?
The problem is apparently not this.

> 
> I am using Windows XP and Cygwin 1.5.

I have added -Wl,--enable-auto-import to the compiler command line and it has
fixed the resulting executable for me.

- --
VH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iFYEAREIAAYFAkm+qQQACgkQhQBMvHf/WHmY+QDdHxljq4x6A8jcYG1l/d4sJqUl
gTXCj7NJW6Z+RADfRGhd9Yau71GpDdacmlAV/tzhwfXSUoN7ppje1A==
=0sYD
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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