public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* resource files
@ 2000-03-08 11:05 alexx
  2000-03-08 15:00 ` Ross Smith
  0 siblings, 1 reply; 2+ messages in thread
From: alexx @ 2000-03-08 11:05 UTC (permalink / raw)
  To: Cygwin

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!


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: resource files
  2000-03-08 11:05 resource files alexx
@ 2000-03-08 15:00 ` Ross Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Ross Smith @ 2000-03-08 15:00 UTC (permalink / raw)
  To: alexx, Cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-08 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-08 11:05 resource files alexx
2000-03-08 15:00 ` Ross Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).