|
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.
This section shows you how to compile csWMPI C applications using gcc:
- Include the file: mpi.h
- 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++
|