Thank you.
At the URL I simply moved the 2 arguments for main signature, ie
int main(int argc, char *argv[])
{
...
}
and both mpicc and mpiCC generated an executeable for mpirun.
But mpiCC obviously does not like
int main(argc, argv)
int argc;
char *argv[];
{
...
}