Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Linux Magazine

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 80 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       wrc [options] [inputfile]


       wrc compiles resources from inputfile into win16 and win32
       compatible binary format.

       The source-file is preprocessed with a builtin ANSI-C com­
       patible  preprocessor  before  the resources are compiled.
       See PREPROCESSOR below.

       wrc takes only one inputfile as  argument.  The  resources
       are  read from standard input if no inputfile is given. If
       the output file is not specified with -o,  then  wrc  will
       write the output to inputfile.res with .rc stripped, or to
       wrc.tab.res if no inputfile was given.


              Set debug level to nn. The value is a bitmask  con­
              sisting  of 1=verbose, 2=dump internals, 4=resource
              parser trace, 8=preprocessor  messages,  16=prepro­
              cessor scanner and 32=preprocessor parser trace.

              Win32  only;  set  output byte-ordering, where e is
              one of n[ative], l[ittle] or b[ig].  Only resources
              in  source-form  can  be  reorderd. Native ordering
              depends on the system on which wrc was  built.  You
              can see the native ordering by typing wrc -h.

       -D, --define=id[=val]
              Define  preprocessor  identifier id to (optionally)
              value val.  See also PREPROCESSOR below.

       -E     Preprocess only. The output is written to  standard
              output if no outputfile was selected. The output is
              compatible with what gcc would generate.

       -F, --target
              Ignored for compatibility with windres.

       -h, --help
              Prints a summary message and exits.

       -i, --input=file
              The name of the input file. If this option  is  not
              used,  then wrc will use the first non-option argu­
              ment as the input file name. If there are  no  non-
              option  arguments, then wrc will read from standard

              Sets  the  input  format. Valid options are 'rc' or
              'rc16'. Setting the input to  'rc16'  disables  the
              recognition of win32 keywords.

       -l, --language=lan
              Set default language to lan. Default is the neutral
              language 0 (i.e. "LANGUAGE 0, 0").

              Do not search the standard include path,  look  for
              include  files  only  in the directories explicitly
              specified with the -I option.

              Ignored for compatibility with windres.

       -o, -fo, --output=file
              Write output to file. Default is inputfile.res with
              .rc  stripped  or wrc.tab.res if input is read from
              standard input.

       -O, --output-format=format
              Sets the output format. The supported  formats  are
              'res'  and  'res16'.   If this option is not speci­
              fied, format defaults to 'res'.

              Enable pedantic warnings. Notably  redefinition  of
              #define  statements  can  be  discovered  with this

       -r     Ignored for compatibility with rc.

              This option may be used to specify the preprocessor
              to  use,  including  any  leading arguments. If not
              specified, wrc uses its builtin processor.  To dis­
              able preprocessing, use --preprocessor=cat.

       -U, --undefine=id
              Undefine  preprocessor  identifier id.  Please note
              that only macros defined up to this point are unde­
              fined  by  this command. However, these include the
              special macros defined automatically by  wrc.   See
              also PREPROCESSOR below.

              Ignored for compatibility with windres.

       -v     Turns on verbose mode (equivalent to -d 1).

       __WRC__         Major version of wrc
       __WRC_MINOR__   Minor version of wrc
       __WRC_MICRO__   Patch level
       __WRC_PATCH__   Same as __WRC_MICRO__

       Win32 compilation  mode  also  sets  __WIN32__  to  1  and
       __FLAT__ to 1.

       Special  macros  __FILE__, __LINE__, __TIME__ and __DATE__
       are also recognized and expand to their respective equiva­


       Language,  version and characteristics can be bound to all
       resource types that have inline data, such as RCDATA. This
       is  an  extension  to Microsoft's resource compiler, which
       lacks this support  completely.  Only  VERSIONINFO  cannot
       have  version  and characteristics attached, but languages
       are propagated properly if you declare it correctly before
       the VERSIONINFO resource starts.


       LANGUAGE 1, 0
       VERSION 312
            1, 2, 3, 4, 5, "and whatever more data you want"
            '00 01 02 03 04 05 06 07 08'


       wrc  was  written  by  Bertho A. Stultiens and is a nearly
       complete rewrite  of  the  first  wine  resource  compiler
       (1994)  by  Martin  von Loewis.  Additional resource-types
       were contributed Ulrich Czekalla and Albert den Haan. Many
       cleanups  by Dimitrie O. Paun in 2002-2003.  Bugfixes have
       been contributed by many Wine developers.


       - The preprocessor recognizes  variable  argument  macros,
       but does not expanded them correctly.
       - Error reporting should be more precise, as currently the
       column and line number reported  are  those  of  the  next
       -  Default  memory options should differ between win16 and

       There is no support for:

Version 1.1.8            August 24, 2000                   WRC(1)



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can help in many different ways.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.10 Seconds