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:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=X8/ZkU+Odl80Q59zMb/E+5yvXRuDI +JI/25NIRBilMK9AXJCHLLRHsbocixwXsfEOuJxKBkB5tcQNBoAYh5RMmVfx0QON LFHRbqc9/GsAUAmWSZHBjBqzWnDjqMxx8bXidMyZ0ZKS3+7ZyoxoLqcotGGgMOGY sy7pMRqZizXdTs= 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:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=Na91Z5aHNCt75vbaJFiMeHQlu6Y=; b=q5+ P/dXODgnY8V9thPX6Ycq5VYUkF7zani8D5yTT5ogP8RzcU6+2cgbEOStR93BNt+b CAejjK8M+RHHJ/MBhOuFnj6kqiEiRL82IzjpdpgH4ARMVzOGQ4NxQXko9Js1mWRi CgS+xNiVZfv3j6X1KVN3Lxm4oK6mhknCg6CIJaSc= 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: 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 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) Date: Wed, 24 Feb 2016 20:57:48 -0700 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 AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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