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 "comment" pragma can be used to place a comment record in an object file http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The "comment" pragma can be used to place a comment record in an object file
or executable file.  The following describes the form of the "comment"
pragma.

+--------------------------------------------------------------------------+
|      #pragma comment ( comment_type [, "comment_string"] ) [;]           |
|                                                                          |
+--------------------------------------------------------------------------+

where
    description

comment_type
    specifies the type of comment record.  The allowable comment types are:

    lib
        Default libraries are specified in special object module records.
         Library names are extracted from these special records by the
        Watcom Linker.  When unresolved references remain after processing
        all object modules specified in linker "FILE" directives, these
        default libraries are searched after all libraries specified in
        linker "LIBRARY" directives have been searched.

        The "lib" form of this pragma offers the same features as the
        "library" pragma.  See the section entitled
        32-bit:  Using Pragmas to Specify Default Libraries: for more
        information.

"comment_string"
    is an optional string literal that provides additional information for
    some comment types.

Consider the following example.


     #pragma comment ( lib, "mylib" );

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