This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Can't link .res file (from windres) using i686-pc-mingw32-g++
- From: Tony Kelman <tony at kelman dot net>
- To: Mark Geisert <mark at maxrnd dot com>, "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 24 Feb 2016 21:17:58 -0800
- Subject: RE: Can't link .res file (from windres) using i686-pc-mingw32-g++
- Authentication-results: sourceware.org; auth=none
- References: <CAK-n8j6Uq2c-a_Vz1nWq3aZSH6L8yzq5xh3ipOPUqJ+yjPAaNw at mail dot gmail dot com>,<56CE833C dot 2040200 at maxrnd dot com>
> Jim Reisert AD1C wrote:
>> 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
Or use i686-pc-mingw32-windres? If that doesn't exist, I know there is
one in mingw-w64 under the name i686-w64-mingw32-windres.
-Tony
--
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