02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

•<br />

NAME<br />

cc, cxx<br />

cc, cxx — interfaces to Microsoft C and C++ <strong>com</strong>pilers<br />

SYNOPSIS<br />

cc [-c] [-C] [-Dname[=value]] [-e epsym] [-E] [-f[float]] [-g] [-Idirectory] [-llibrary] [-Ldirectory]<br />

[-m] [-mmodel] [-M] [-o output] [-O] [-P] [-s] [-S] [-static] [-U symname] [-VS num] [-Woption]<br />

[-x] [-Xc] files...<br />

cxx [-c] [-C] [-Dname[=value]] [-e epsym] [-E] [-g] [-Idirectory] [-llibrary] [-Ldirectory] [-m] [-M]<br />

[-o output] [-O] [-P] [-s] [-S] [-static] [-U symname] [-VS num] [-Woption] [-x] [-Xc] files...<br />

DESCRIPTION<br />

The cc and cxx <strong>com</strong>mands serve as interfaces to the Microsoft C <strong>com</strong>piler (cl). Versions 5.0 and<br />

higher of this <strong>com</strong>piler are supported. cc is for <strong>com</strong>piling C files, while cxx is for <strong>com</strong>piling C++<br />

files.<br />

Note:<br />

The behavior of cc depends upon whether or not you are working in the standard MKS<br />

Toolkit development environment or the development environment designed for use with the<br />

MKS Toolkit UNIX APIs.<br />

cxx is only available in the MKS Toolkit UNIX APIs development environment.<br />

These <strong>com</strong>mands are just wrappers that invoke the cl utility. If you are using MKS Toolkit<br />

for Professional Developers or MKS Toolkit for Developers, the presence of cl in PATH is<br />

checked for during installation. For other Toolkit products, you must ensure yourself that cl<br />

is in the PATH.<br />

Files with a .c suffix are taken to be C source files, files with a .cpp or .cxx extension are taken<br />

to be C++ source files, and files with a .asm extension are taken to be assembly language source<br />

files. The presence of source files with a .cpp or .cxx automatically causes the source files to be<br />

<strong>com</strong>piled as if the cxx <strong>com</strong>mand had been invoked instead.<br />

The cc and cxx <strong>com</strong>mands implicitly set the following Microsoft <strong>com</strong>piler switches (for Intel<br />

platforms only):<br />

353 of 457

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!