From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wei Ku" To: Subject: Help! link to MPI library in IBM SP2 machine running AIX 4.2 Date: Fri, 26 Jun 1998 19:16:00 -0000 Message-id: <001401bda156$61a20770$3a85a980@magnon.phys.utk.edu> X-SW-Source: 1998-06/msg00982.html I apologize if this question is stupid. I really need help with linking a code with MPI library in IBM SP2 machine running AIX 4.2.   The source code is compiled with egcs 1.0.2 ( which will soon be upgraded to 1.0.3 ). The MPI library needs to be linked dynamically at run time. I would like to do it with the native compiler mpCC ( xlC with proper parameters) : [  prompt> g++ -c -o mpi_mm.g++.o mpi_mm.cpp  prompt> mpCC -g -o matmulC.g++ mpi_mm.g++.o  ld: 0711-317 ERROR: Undefined symbol: .__main  ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.  make: 1254-004 The error code from the last command is 8. ]   Also, I read some information about collect2. Does this kind of combination g++ plus mpCC( xlC ) properly initialize the static object ?   Any reply is VERY appreciated. Thank you in advance.   Sincerely, Wei Ku   *************************************** Department of Physics and Astronomy The University of Tennessee weiku@utkux.utcc.utk.edu --------------------------------------- Solid State Division Oak Ridge National Laboratory weiku@solid.ssd.ornl.gov ***************************************