Hi,

 

When compiling a C++ source file named test.cpp that needs a shared library named libUtils.so (which in its turn needs Open MPI shared library, hence the parameter -Wl,-rpath-link,/home/dummy/openmpi/build/lib ) as follows:

g++ test.cpp -lUtils -Wl,-rpath-link,/home/dummy/openmpi/build/lib

An error is thrown /home/dummy/openmpi/build/lib/libopen-pal.so.20: undefined reference to pthread_atfork.

I passed -pthread and -lpthread (before and after -lUtils) to g++ but none of these solved the error.

 

Environment where this error is thrown:

OS: Ubuntu 14.04
Compiler: g++ 4.9
MPI: Open MPI 2.1.3

 

Thank you for your help,

L.

 

_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/devel

Reply via email to