building SPRNG with macports gcc45 & mpich2

Gideon Simpson gideon.simpson at gmail.com
Thu Dec 22 20:45:05 PST 2011


Slightly off topic, but I was wondering if anyone had successfully built SPRNG (http://sprng.cs.fsu.edu/) with a macports based gcc and mpich2.

I have gcc45 and mpich+gcc45 installed, and I receive the error:

Undefined symbols for architecture x86_64:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
if g++ -DHAVE_CONFIG_H -I../SRC -I../include   -DAdd_  -DSPRNG_MPI    -g -O2 -Wno-deprecated -DLONG64=long -MT libsprng_a-sprng.o -MD -MP -MF ".deps/libsprng_a-sprng.Tpo" -c -o libsprng_a-sprng.o `test -f 'sprng.cpp' || echo './'`sprng.cpp; \
	then mv -f ".deps/libsprng_a-sprng.Tpo" ".deps/libsprng_a-sprng.Po"; else rm -f ".deps/libsprng_a-sprng.Tpo"; exit 1; fi
In file included from sprng.cpp:6:0:
communicate.cpp:2:17: fatal error: mpi.h: No such file or directory
compilation terminated.

Thanks,

-gideon



More information about the macports-users mailing list