Re: [Mpi-forum] Compile problems with examples in MPI Standard
24 Jul
2012
24 Jul
'12
10:42 a.m.
On Jul 24 2012, William Gropp wrote:
Here's the test case for everyone. No const.
int MPI_Init( int *argc_p, char *((*argv_p)[]) ); int main( int argc, char *argv[] ) { MPI_Init( &argc, &argv ); return 0; }
Ah. Yes, that's erroneous. The type of &argv is 'char ***', though both of the following should work: int MPI_Init( int *argc_p, char ***argv_p ); int MPI_Init( int *argc_p, char **argv_p[] ); You can add parentheses ad lib, provided that you bind the array brackets to the name, as in: int MPI_Init( int *argc_p, char (*(*(argv_p[]))) ); Regards, Nick Maclaren.
5113
Age (days ago)
5113
Last active (days ago)
0 comments
1 participants
participants (1)
-
N.M. Maclaren