This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: resource files
- To: "alexx" <alexx at inbox dot lv>, <Cygwin at sourceware dot cygnus dot com>
- Subject: Re: resource files
- From: "Ross Smith" <ross dot s at ihug dot co dot nz>
- Date: Thu, 9 Mar 2000 12:00:40 +1300
- References: <38C682CB.C9224FCD@inbox.lv>
From: "alexx" <alexx@inbox.lv>
> Hi all!
> I want to use icons and other resources in my win32 program. Is it
> possible to compile and use .res files in Cygwin/mingw32? Or maybe
> there's another way for embedding resources into exe? Thanks for help!
Use windres to compile the resource file:
windres -i foo.rc -o foo.o
Then just include the .o file in the link step along with the rest of
the modules. (Native Windows compilers use a .res file as an
intermediate step between .rc and .obj; this isn't needed with Cygwin's
windres.)
--
Ross Smith <ross.s@ihug.co.nz> The Internet Group, Auckland, New Zealand
========================================================================
"So that's 2 T-1s and a newsfeed ... would you like clues with that?"
-- Peter Da Silva
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com