Building Large Projects

4. Compiler Command Line Inteface

Setting Compiler Environment

To use a command line interface on the NT platform a "cmd" window should be opened. For this purpose, make a shortcut on your desktop or start a program by using the Start/Run command

  1. Click Start, and then click Run.
  2. In Open, type "cmd.exe".
As soon the command line window is opened you can configure the environment variables used by specific compilers. The most important variables which should be updated are:
  • INCLUDE
  • LIB
  • PATH
Not all the compilers are limited in use to only these variables (for more details, consult your compiler documentation). Your can update all of the variables using the "SET" command; however, most of the compilers provide batch files which update everything when run.

Many compilers are also offered as shortcuts in the "Programs" tool bar.


Vendor specific compilers

All compilers can be invoked using one simple command

Intel Fortran 8.*x :

  • ifl -Qlowercase -c src/foo.f90 -Fo bin/foo.exe -link MPIPro_cdec.lib MPIPro.lib

Microsoft Visual C++:

  • cl -c src\foo.c -Fo bin\foo.exe -link MPIPro_cpp.lib MPIPro.lib

Intel C/C++ 8.*:

  • icl -Qlowercase -c src/foo.f90 -Fo bin/foo.exe -link MPIPro.lib