[Mpi-forum] Compile problems with examples in MPI Standard

N.M. Maclaren nmm1 at cam.ac.uk
Tue Jul 24 11:30:44 CDT 2012

On Jul 24 2012, William Gropp wrote:
> Clearly, we need to change the prototype for MPI_Init and 
> MPI_Init_thread. The best choice is probably back to the original:
>char ***argv_p


> since that's what it is (complete with a rationale for why it isn't what 
> we're currently using). I prefer this to the char (*(*(argv_p[]))), since 
> the usual inside-out reading of that is "argv_p is an array of pointers 
> to pointers", which isn't the intent, though it might make the compiler 
> happy.

Agreed.  'char (*(*(argv_p[])))' is quite simply perverse and, while
equivalent, will merely confuse people :-)

Nick Maclaren.

More information about the mpi-forum mailing list