#import <Foundation/Foundation.h>
#import "mpi.h"
int main (int argc, char** argv)
{
//***
// Variable Declaration
//***
int theRank;
int theSize;
//***
// Initializing Message Passing Interface
//***
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD,&theSize);
MPI_Comm_rank(MPI_COMM_WORLD,&theRank);
//*** end
NSLog(@"Executing open MPI Objective C");
}
[87]UNC ONLY: SAW>mpicc main.m -o test
Undefined symbols:
"___CFConstantStringClassReference", referenced from:
cfstring=Executing open MPI Objective C in ccj1AlL9.o
"_NSLog", referenced from:
_main in ccj1AlL9.o
ld: symbol(s) not found
collect2: ld returned 1 exit status