C guide - Linux

This section takes you through the steps of compiling and linking in C. Currently only the GNU Compiler Collection versions 2.95 and above for Linux are supported.


gcc

This section shows you how to compile csWMPI C applications using gcc:

  1. Include the file: mpi.h
  2. Link with the libraries csWMPI and stdc++

The library stdc++ can be omitted in case you compile with g++.

In order to link with the two libraries mentioned above add the following switches:

-lcsWMPI -lstdc++

Example:

gcc -o myapp myapp.c -lcsWMPI -lstdc++




© 2009 Critical Software SA. All trademarks and copyrights on this page are owned by their respective owners.
cscsWMPI II™, cscsWMPI™ and PatentMPI™ are trademarks of Critical Software SA. All Rights Reserved.