|
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 II C applications using gcc:
- Include the file: mpi.h
- Link with the libraries csWMPI II2 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 II2 -lstdc++
Example:
gcc -o myapp myapp.c -lcsWMPI II2 -lstdc++
|