Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compiling Windows resources (.rc)
Compiling Windows resources (.rc) [message #171204] Sat, 10 June 2006 16:56 Go to next message
Eclipse UserFriend
Originally posted by: rustamabd.columbus.rr.com

I dunno if CDT developers are reading this group... but I will post this
anyway.

It would be nice if CDT could pick up .RC files and compile/link them in
automatically.
It must be very easy to implement... just invoke windres (from MinGW), and
then link one more .o file into the executable...

- Russ -
Re: Compiling Windows resources (.rc) [message #794955 is a reply to message #171204] Thu, 09 February 2012 22:35 Go to previous message
Trueman C is currently offline Trueman CFriend
Messages: 8
Registered: February 2011
Junior Member
As a newcomer I am very astonished, that nowbody in this forum did answer your question since six years, an nowbody did answer as I asked it last year, but I found it by myself with only little help.

Try this:
Project | Properties | C/C++-Build | Settings | Build Steps | Pre-Build Steps | Command: windres --use-temp-file -i..\MyProject.rc -o..\MyProject_rc\MyProject_rc.o

Project | Properties | C/C++-Build | Settings
Tool Settings | MinGW C++ Linker | Miscellaneous | Other Objects
click the icon 'Add'
fill in "C:\MyWorkspace\MyProject\MyProject_rc\MyProject_rc.o"

'MyWorkspace' and 'MyProject' replace with whatever is fitting for your purpose

You have to add the folder .\MyProject_rc before you build

Of course windres.exe must be on your PC and the path to windres.exe must be known to eclipse

and look here, read thoroughly, and read the discussion
under http://wiki.wxwidgets.org/Talk:Eclipse,_CDT_%26_MingW_Setup_Guide

[Updated on: Thu, 09 February 2012 23:09]

Report message to a moderator

Previous Topic:-run-exec in Eclipse --> CodeSourcery/arm-none-eabi-gdb --> gdb --> Atollic/gdbserver ?
Next Topic:windows resource files
Goto Forum:
  


Current Time: Thu Apr 18 03:17:03 GMT 2024

Powered by FUDForum. Page generated in 0.01853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top