MS resource compiler

  • strict warning: Non-static method Text_Wiki::singleton() should not be called statically in /var/www/drupal/6.x/sites/ on line 475.
  • strict warning: Non-static method Text_Wiki::factory() should not be called statically in /usr/share/php/Text/Wiki.php on line 448.
  • strict warning: Non-static method Text_Wiki::isError() should not be called statically in /usr/share/php/Text/Wiki.php on line 449.
  • strict warning: Declaration of Text_Wiki_Parse_Emphasis::process() should be compatible with Text_Wiki_Parse::process(&$matches) in /usr/share/php/Text/Wiki/Parse/Mediawiki/Emphasis.php on line 0.

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


    * 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 and windres at

[from] Owner: "LukeDunstan" Last edited on December 19, 2004 3:54 am by "LukeDunstan"

Site Status

Site maintenance completed May 25th, 2012 at 12:38 UTC