[OMPI users] xcode and ompi

2007-10-21 Thread Tony Sheh

Hi all,

I'm working in xcode and i'm trying to build an application that  
links against the OMPI libraries. So far i've included the following  
files in the build:


libmpi.dylib
libopen-pal.dylib
libopen-rte.dylib

and the errors i get are

Undefined symbols:
 all the MPI functions you can think of..


as well as a warning: "suggest use of -bind_at_load, as lazy binding  
may result in errors or different symbols being used


I've compiled and linked to the static libraries (using ./configure -- 
enable-static) and i get the same errors. Also, i previously the  
latest version of lam/mpi installed. I didn't uninstall it since i  
lost the original directory as well as the make and configure  
settings. If that is the conflict then any information about how to  
resolve it would be good.


Thanks!
Tony


Re: [OMPI users] xcode and openmpi

2007-10-25 Thread Tony Sheh

I think i found a solution, and i'll post it here:

Following ./configure and make all install your open mpi libs and  
headers should be in /usr/local/lib and /usr/local/include.


Header Search Paths: /usr/local/include
Library Search Paths: /usr/local/lib

add the following (4) frameworks/libraries: libmpi.dylib  
libmpi_cxx.dylib libopen-pal.dylib and libopen-ret.dylib


your code should work. Make sure that you recompile previous static  
libraries with these files or you will get undefined objects... (i  
think)


Tony