Am Freitag März 10 2006 12:01 schrieb Subir Singh Lamba: > Hi, > Somehow I have been able to compile my code using mpicc while using Cmake. > But after compilation it gives the following error. My project name is BIS. > --------------------------------------------------------------------------- >------------------------------------------- Building shared library > /users/math/fc/pravir/Subir/Sun/Clang/Sequential/Cfdcodes/testCluster/bin/l >ibBISSolver.so... /usr/bin/ld: > /opt/mpichdefault-1.2.6//lib/libmpich.a(type_commit.o): relocation > R_X86_64_32 can not be used when making a shared object; recompile with > -fPIC
You are trying to link a static lib into a shared lib - not allowed unless mpich.a is compiled pic. Search the archive, I explained it a week ago. -- (°= =°) //\ Prakash Punnoor /\\ V_/ \_V
pgpK6xs2kcQph.pgp
Description: PGP signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
