Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - the formal watcom c/c++ command line syntax is shown below. http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The formal Watcom C/C++ command line syntax is shown below.


     compiler_name [options] [file_spec] [options] [@extra_opts]

The square brackets [ ] denote items which are optional.

compiler_name
    is one of the Watcom C/C++ compiler command names.

    WCC
        is the Watcom C compiler for 16-bit Intel platforms.

    WPP
        is the Watcom C++ compiler for 16-bit Intel platforms.

    WCC386
        is the Watcom C compiler for 32-bit Intel platforms.

    WPP386
        is the Watcom C++ compiler for 32-bit Intel platforms.

file_spec
    is the file name specification of one or more files to be compiled.

    If no drive is specified, the default drive is assumed.

    If no path is specified, the current working directory is assumed.  If
    the file is not in the current directory, an adjacent "C" directory
    (i.e., ..\C) is searched if it exists.

    If no file extension is specified, the compiler will check for a file
    with one of the following extensions in the order listed:

    .CPP
        (C++ only)

    .CC
        (C++ only)

    .C
        (C/C++)

    If a period "." is specified but not the extension, the file is assumed
    to have no filename extension.

    If only the compiler name is specified then the compiler will display a
    list of available options.

options
    is a list of valid compiler options, each preceded by a slash ("/") or a
    dash ("-").  Options may be specified in any order.

extra_opts
    is the name of an environment variable or file which contains additional
    command line options to be processed.  If the specified environment
    variable does not exist, a search is made for a file with the specified
    name.  If no file extension is included in the specified name, the
    default file extension is ".occ".  A search of the current directory is
    made.  If not successful, an adjacent "OCC" directory (i.e., ..\OCC) is
    searched if it exists.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson