Re: Can't link .res file (from windres) using i686-pc-mingw32-g++

2016-02-25 Thread Jim Reisert AD1C
On Wed, Feb 24, 2016 at 9:29 PM, Mark Geisert wrote: > Just a guess: your 64-bit windres is generating a 64-bit .res file that the > 32-bit g++ can't grok. Look at 'windres -h'. There's a "-F" == "--target" > flag that can specify a target type. I would try adding "-F pe-i386" after > the "-O

RE: Can't link .res file (from windres) using i686-pc-mingw32-g++

2016-02-24 Thread Tony Kelman
> 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

Re: Can't link .res file (from windres) using i686-pc-mingw32-g++

2016-02-24 Thread Mark Geisert
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

Can't link .res file (from windres) using i686-pc-mingw32-g++

2016-02-24 Thread Jim Reisert AD1C
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 #