Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <001f01bf8952$205024b0$a8a11dcb@ihug.co.nz>
From: "Ross Smith" <ross.s@ihug.co.nz>
To: "alexx" <alexx@inbox.lv>, <Cygwin@sourceware.cygnus.com>
References: <38C682CB.C9224FCD@inbox.lv>
Subject: Re: resource files
Date: Thu, 9 Mar 2000 12:00:40 +1300
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

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

