Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <001f01bf8952$205024b0$a8a11dcb@ihug.co.nz> From: "Ross Smith" To: "alexx" , References: <38C682CB DOT C9224FCD AT inbox DOT 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" > 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 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 AT sourceware DOT cygnus DOT com