There is no harm in using the C API from a C ++ application. Many popular APIs are written in C (as an example, use the Windows API, or POSIX, or SQLite, zlib, Python, or dozens of others).
So, if this seems like the most convenient solution, keep using the C API. It should be pretty easy to write some subtle rappers in C ++ "if that's a little for you."
But beyond that, a C ++ developer should always learn and use Boost. Since Boost has an MPI library, it might at least be worth checking out.
And, in the end, go with what seems most simple to you in your situation.
source
share