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

In order to link with the csWMPI library add the following switch:

-lcsWMPI

Example:

gcc -o myapp myapp.cpp -lcsWMPI




© 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.