Revision of MS resource compiler from 2009, July 15 - 08:28

Printer-friendly version

The main difference between using the MS resource tools and the GNU tools is that MS rc generates a ".res" file in a special binary resource format, which can be passed directly to MS link, while the GNU linker ld only supports resources in ".o" (same as ".obj") format (although windres can output in both formats). Therefore, to convert commands like this:

    rc foo.rc
    link -out:foo.exe foo.obj foo.res

You need something like the following for the GNU tools:

    windres foo.rc foores.o
    gcc -o foo.exe foo.o foores.o

Furthermore:

    * If the rc command has the "/r" switch then you can ignore it (rc actually ignores it too)
    * Preprocessor definition switches like "/dBAR" or "-DBAR" should be converted to "-DBAR"
    * Include path switches ("/i") should be converted to "--include-dir=" (or -I with recent versions of windres)
    * For other switches, consult the documentation for both rc (on MSDN) at http://msdn.microsoft.com/library/en-us/tools/tools/using_rc_the_rc_comm... and windres at http://sources.redhat.com/binutils/docs-2.15/binutils/windres.html

[from http://oldwiki.mingw.org/index.php/MS%20resource%20compiler] Owner: "LukeDunstan" Last edited on December 19, 2004 3:54 am by "LukeDunstan"

This wiki is not a forum for discussion of usage issues. Please use the mingw-users@lists.osdn.me list instead. We do not allow creation of comments by anonymous or untrusted users, on any page.
 
Site Status

Site maintenance performed successfully, site online Dec 13th 12:00 AM Eastern.