In order to compile your code on a machine at CSCS you should load the module of a Programming Environment and of the libraries that you need:

  • module avail lists of the modules available on the machine
  • module show "modulename" lists the variables and paths related to a single module
    Please change modulename  with the module of your choice.

On Cray systems you should use the appropriate compiler wrapper to build your code: cc for C, CC for C++ or ftn for Fortran.
The wrapper will add the correct path of the libraries that have been loaded. 

Please visit the section Code Compilation of the User Portal for more information.