Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI users] Open MPI and Objective C
From: Scott Wilcox (scott.a.wilcox_at_[hidden])
Date: 2011-09-18 22:20:46

I have been asked to convert some C++ code using Open MPI to Objective C and I am having problems getting a simple Obj C program to compile. I have searched through the FAQs and have not found anything specific. Is it an incorrect assumption that the C interfaces work with Obj C, or am I missing something?

Thanks in advance for your help!

open MPI version: 1.4.3
OSX 10.5.1

file: main.m

#import <Foundation/Foundation.h>
#import "mpi.h"

int main (int argc, char** argv)

   // Variable Declaration
   int theRank;
   int theSize;
   // Initializing Message Passing Interface
   //*** 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