Scroll to navigation

slice2cpp(1) General Commands Manual slice2cpp(1)

NAME

slice2cpp - The Slice to C++ compiler.

SYNOPSIS

slice2cpp [options] [files]

DESCRIPTION

slice2cpp compiles Slice files to C++. The macro __SLICE2CPP__ is defined during this compilation.

Full documentation for slice2cpp is available online at:
https://doc.zeroc.com/ice/latest/language-mappings/c++11-mapping/slice2cpp-command-line-options

OPTIONS


Displays help message.

Displays the compiler version.


Defines the preprocessor symbol NAME.


Defines the preprocessor symbol NAME with the value DEF.


Undefines the preprocessor symbol NAME.


Add the directory DIR to the search path for #include directives.


Print the preprocessor output on stdout.


Place the generated files into directory DIR.


Print debug information showing the operation of the Slice parser.


Print dependency information to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.


Print dependency information in XML format to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.


Directs dependency information to the specified file. The output format depends on whether --depend or --depend-xml is also specified.


Checks the provided command-line options for correctness, and does not generate any code.


Changes the file extension for the generated header files from the default h to EXT.


Changes the file extension for the generated source files from the default cpp to EXT.


This option adds an include directive for the specified header at the beginning of the generated source file (preceding any other include directives). If GUARD is specified, the include directive is protected by the specified guard.


Modifies #include directives in source files to prepend the path name of each header file with the directory DIR.


Generate sample implementation files for the C++11 mapping. This option will not overwrite an existing file.


Generate sample implementation files for the C++98 mapping. This option will not overwrite an existing file.


Generate checksums for Slice definitions.

SEE ALSO

slice2cs(1), slice2java(1), slice2js(1), slice2matlab(1), slice2objc(1), slice2php(1), slice2py(1), slice2rb(1), slice2swift(1)