MPI needs to add extra libraries and include directories to your compilation line when compiling your program. Rather than tracking all of them yourself, you can usually use one of the compiler wrappers.
C Wrapper
mpicc -o my_prog my_prog.c
Contributors
Topic Id: 3650
Example Ids: 12554
This site is not affiliated with any of the contributors.