Compiling Windows resources (.rc) [message #171204] |
Sat, 10 June 2006 16:56 |
Eclipse User |
|
|
|
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 |
Trueman C 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
|
|
|
Powered by
FUDForum. Page generated in 0.01853 seconds