delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/24/22:58:14

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: <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
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: <CAK-n8j6Uq2c-a_Vz1nWq3aZSH6L8yzq5xh3ipOPUqJ+yjPAaNw AT mail DOT gmail DOT com>
Message-ID: <CAK-n8j6Uq2c-a_Vz1nWq3aZSH6L8yzq5xh3ipOPUqJ+yjPAaNw@mail.gmail.com>
Subject: Can't link .res file (from windres) using i686-pc-mingw32-g++
From: Jim Reisert AD1C <jjreisert AT alum DOT mit DOT edu>
To: cygwin AT cygwin DOT com
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, <jjreisert AT alum DOT mit DOT edu>, 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019