From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84100 invoked by alias); 25 Feb 2016 03:57:57 -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 84056 invoked by uid 89); 25 Feb 2016 03:57:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_50,KAM_INFOUSMEBIZ,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=UD:us, coff, HX-Envelope-From:prvs, H*RU:sk:outgoin X-HELO: alum-mailsec-scanner-3.mit.edu Received: from alum-mailsec-scanner-3.mit.edu (HELO alum-mailsec-scanner-3.mit.edu) (18.7.68.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Feb 2016 03:57:51 +0000 Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by (Symantec Messaging Gateway) with SMTP id 24.73.00920.EBB7EC65; Wed, 24 Feb 2016 22:57:50 -0500 (EST) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) (authenticated bits=0) (User authenticated as jjreisert@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id u1P3vms0002196 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 24 Feb 2016 22:57:49 -0500 Received: by mail-io0-f169.google.com with SMTP id 9so70318843iom.1 for ; Wed, 24 Feb 2016 19:57:49 -0800 (PST) X-Gm-Message-State: AG10YOTy6OGgtIK0J++lgKBDMv8sDNKEH5UAf9ZMw4ONIi5ZX6r8MZJGZ1Oz3+BG2JjvQpDbNMmUEDtRYQkV8g== MIME-Version: 1.0 X-Received: by 10.107.8.40 with SMTP id 40mr1226339ioi.122.1456372668766; Wed, 24 Feb 2016 19:57:48 -0800 (PST) Received: by 10.36.222.197 with HTTP; Wed, 24 Feb 2016 19:57:48 -0800 (PST) Date: Thu, 25 Feb 2016 03:57:00 -0000 X-Gmail-Original-Message-ID: Message-ID: Subject: 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/msg00388.txt.bz2 I have a 64-bit Cygwin environment. I'm trying to compile a 32-bit (target) Windows program using i686-pc-mingw32-g++ # i686-pc-mingw32-g++ -g -Wall -Iinclude -I../../library/include -c -o NPOTAdlg.o NPOTAdlg.cpp # windres -Iinclude res/NPOTAdlg.rc -O coff -o res/NPOTAdlg.res # i686-pc-mingw32-g++ -s -mwindows -static-libgcc -static-libstdc++ -lwininet NPOTA.o NPOTAdlg.o res/NPOTAdlg.res ../../library/library.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libwininet.a -o NPOTA But I get this error on the link (last) step: res/NPOTAdlg.res: file not recognized: File format not recognized This program is a clone of another program I wrote a couple of years ago (I wanted to re-use the Windows framework I had developed). However, at that time, I was using 32-bit Cygwin, not 64-bit Cygwin. Is there a work-around for this, other than re-creating a 32-bit Cygwin environment? Thanks - 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