Hi Leo,

The error messages indicate that you did not link against the MPI libraries.

Matthias


On 17 Jun 2015, at 17:45, Leo Fang <leofang@phy.duke.edu> wrote:

Hello all,


FYI, same error message can also be seen by compiling in the command line with g++ -I/opt/alps/include -L/opt/alps/lib hybmain.cpp. Moreover, with g++ --version the information of my compiler is given below:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

Any suggestion? Thanks.


Sincerely,
Leo (Fang Yao-Lung)
Duke Physics 

2015-06-17 17:40 GMT-04:00 Leo Fang <leofang@phy.duke.edu>:
Hello all, 


It's me again...I have the binary packages of alps 2.2.0b3, vistrails 2.1.2 and alps-vistrails-2.2.0b3 installed on Mac OS X 10.10.3, and I've tested them.

Now I imported the source code of the "hybridization" application to Xcode as a stand-alone project and took care of the paths of included header files. However, when compiling almost finished, Xcode returned a bunch of "Apple Mach-O Linker Error", saying, for example, 

Undefined symbols for architecture x86_64:
  "_MPI_Abort", referenced from:
      MPI::Comm::Abort(int) in hybevaluate.o
      MPI::Comm::Abort(int) in hybretintfun.o
      MPI::Comm::Abort(int) in hybint.o
      MPI::Comm::Abort(int) in hybmatrix_ft.o
      MPI::Comm::Abort(int) in hybupdates.o
      MPI::Comm::Abort(int) in hybmain.o
      MPI::Comm::Abort(int) in hybfun.o

and a lot of similar errors have to do with the MPI functions and other ALPS functions such as hdf5, ngs, etc. It seems the compiler can correctly find where the dylib files are, and so I am not sure what else can be wrong...I hope this question is less dumber than my previous one...

Thanks.


Sincerely,
Leo (Fang Yao-Lung)
Duke Physics