Compile from the Command Line

The syntax for the icc command is:

Depending on how you want to compile your files and how you have set up the ICC environment variable, many of the parameters used with the icc command are optional when you issue the command from a command line.

For example, to compile and link the program bob.c, enter the following:

   icc bob.c

An object code file, bob.obj, and an executable file, bob.exe, are created.

You can view a summary of compiler options directly on the command line with the /? option. Type:

    icc  /?

This listing is printed to stderr, but you can redirect it to stdout or to a file.

The listing generated by this command is not intended to be used as a programming interface.

You can include options for the linker in your icc command, using the /B compiler option. Certain linker options are passed by default.



Start the Compiler


Summary of Compiler Options
Options Passed to the Linker by Default