From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53493 invoked by alias); 25 Feb 2016 14:50:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 53470 invoked by uid 89); 25 Feb 2016 14:50:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_50,KAM_INFOUSMEBIZ,SPF_PASS autolearn=no version=3.3.2 spammy=coff, UD:us, windres, reisert X-HELO: alum-mailsec-scanner-8.mit.edu Received: from alum-mailsec-scanner-8.mit.edu (HELO alum-mailsec-scanner-8.mit.edu) (18.7.68.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Feb 2016 14:50:40 +0000 Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by (Symantec Messaging Gateway) with SMTP id 23.E9.20512.EB41FC65; Thu, 25 Feb 2016 09:50:38 -0500 (EST) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) (authenticated bits=0) (User authenticated as jjreisert@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id u1PEobdL029277 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 25 Feb 2016 09:50:38 -0500 Received: by mail-io0-f172.google.com with SMTP id 9so84968580iom.1 for ; Thu, 25 Feb 2016 06:50:37 -0800 (PST) X-Gm-Message-State: AG10YOT8Z4PIqCB7MzJeUqZkkqE5fLqzEk40Cl4wID9RtZLTQSNx0n+1dmbiWZR7wVjiR9UyDtG1Cjn6kZJ1ng== MIME-Version: 1.0 X-Received: by 10.107.153.200 with SMTP id b191mr3352295ioe.54.1456411837145; Thu, 25 Feb 2016 06:50:37 -0800 (PST) Received: by 10.36.222.197 with HTTP; Thu, 25 Feb 2016 06:50:37 -0800 (PST) In-Reply-To: <56CE833C.2040200@maxrnd.com> References: <56CE833C.2040200@maxrnd.com> Date: Thu, 25 Feb 2016 14:50:00 -0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Can't link .res file (from windres) using i686-pc-mingw32-g++ From: Jim Reisert AD1C To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00392.txt.bz2 On Wed, Feb 24, 2016 at 9:29 PM, Mark Geisert wrote: > Just a guess: your 64-bit windres is generating a 64-bit .res file that the > 32-bit g++ can't grok. Look at 'windres -h'. There's a "-F" == "--target" > flag that can specify a target type. I would try adding "-F pe-i386" after > the "-O coff" on your command. If windres doesn't accept both -O and -F, > try leaving off the "-O coff" and just specify the -F flag and value. Thanks, Mark, that worked! I assumed that -O coff would "do the right thing" by itself. I did not realize that "format" and "target" were independent. I finally read somewhere that by default, windres picks the target that is listed first when getting help via "-h". In my case that was pe-x86-64, which was wrong for what I wanted to do. - Jim -- Jim Reisert AD1C, , http://www.ad1c.us -- 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