This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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
- Date: Wed, 24 Feb 2016 20:57:48 -0700
- Subject: Can't link .res file (from windres) using i686-pc-mingw32-g++
- Authentication-results: sourceware.org; auth=none
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@alum.mit.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