I'm trying to replace the usage of platform mpi with open mpi. I am
trying to compile on Windows 7 64 bit using Visual Studio 2010. I have
added the paths to the openmpi include and library directories and added
the libmpid.lib and libmpi_cxxd.lib to the linker input. The application
compiles (find the mpi headers). When it tries to link I get the
following output:

 

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Comm_remote_size referenced in function "struct MpComm_s * __cdecl
MpCommSpawn(char const *,char const * * const,int,enum Bool_e)"
(?MpCommSpawn@@YAPAUMpComm_s@@PBDQAPBDHW4Bool_e@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Comm_spawn referenced in function "struct MpComm_s * __cdecl
MpCommSpawn(char const *,char const * * const,int,enum Bool_e)"
(?MpCommSpawn@@YAPAUMpComm_s@@PBDQAPBDHW4Bool_e@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_info_null

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_comm_self

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_comm_null

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_op_sum

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_op_min

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_op_max

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Intercomm_create referenced in function "int __cdecl
MpCommCreateCommunicators(struct MpComm_s * *,struct MpComm_s * *)"
(?MpCommCreateCommunicators@@YAHPAPAUMpComm_s@@0@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Comm_split referenced in function "int __cdecl
MpCommCreateCommunicators(struct MpComm_s * *,struct MpComm_s * *)"
(?MpCommCreateCommunicators@@YAHPAPAUMpComm_s@@0@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Comm_rank referenced in function "int __cdecl
MpCommCreateCommunicators(struct MpComm_s * *,struct MpComm_s * *)"
(?MpCommCreateCommunicators@@YAHPAPAUMpComm_s@@0@Z)

como_mplib.lib(mpenv.obj) : error LNK2001: unresolved external symbol
_MPI_Comm_rank

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Comm_size referenced in function "int __cdecl
MpCommCreateCommunicators(struct MpComm_s * *,struct MpComm_s * *)"
(?MpCommCreateCommunicators@@YAHPAPAUMpComm_s@@0@Z)

como_mplib.lib(mpenv.obj) : error LNK2001: unresolved external symbol
_MPI_Comm_size

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_comm_world

como_mplib.lib(mpenv.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_comm_world

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Comm_get_parent referenced in function "struct MpComm_s * __cdecl
MpCommNewChild(void)" (?MpCommNewChild@@YAPAUMpComm_s@@XZ)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Comm_free referenced in function "void __cdecl MpCommFree(struct
MpComm_s *)" (?MpCommFree@@YAXPAUMpComm_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Send referenced in function "int __cdecl MpCommSend(struct MpComm_s
*,void const *,int,enum Dtype_e,int,int)"
(?MpCommSend@@YAHPAUMpComm_s@@PBXHW4Dtype_e@@HH@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Isend referenced in function "int __cdecl MpCommISend(struct
MpComm_s *,void const *,int,enum Dtype_e,int,int,struct MpRequest_s *)"
(?MpCommISend@@YAHPAUMpComm_s@@PBXHW4Dtype_e@@HHPAUMpRequest_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Get_count referenced in function "int __cdecl MpCommRecv(struct
MpComm_s *,void *,int,enum Dtype_e,int,int,struct MpStatus_s *)"
(?MpCommRecv@@YAHPAUMpComm_s@@PAXHW4Dtype_e@@HHPAUMpStatus_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Recv referenced in function "int __cdecl MpCommRecv(struct MpComm_s
*,void *,int,enum Dtype_e,int,int,struct MpStatus_s *)"
(?MpCommRecv@@YAHPAUMpComm_s@@PAXHW4Dtype_e@@HHPAUMpStatus_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Irecv referenced in function "int __cdecl MpCommIRecv(struct
MpComm_s *,void *,int,enum Dtype_e,int,int,struct MpRequest_s *)"
(?MpCommIRecv@@YAHPAUMpComm_s@@PAXHW4Dtype_e@@HHPAUMpRequest_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_char

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Probe referenced in function "int __cdecl MpCommProbe(struct
MpComm_s *,int,int,struct MpStatus_s *)"
(?MpCommProbe@@YAHPAUMpComm_s@@HHPAUMpStatus_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Barrier referenced in function "int __cdecl MpCommBarrier(struct
MpComm_s *)" (?MpCommBarrier@@YAHPAUMpComm_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Reduce referenced in function "int __cdecl MpCommReduce(struct
MpComm_s *,void const *,void *,int,enum Dtype_e,enum MpCommOp_e,int)"
(?MpCommReduce@@YAHPAUMpComm_s@@PBXPAXHW4Dtype_e@@W4MpCommOp_e@@H@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Allreduce referenced in function "int __cdecl
MpCommAllreduce(struct MpComm_s *,void const *,void *,int,enum
Dtype_e,enum MpCommOp_e)"
(?MpCommAllreduce@@YAHPAUMpComm_s@@PBXPAXHW4Dtype_e@@W4MpCommOp_e@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol
_MPI_Waitall referenced in function "int __cdecl MpCommWaitall(struct
MpRequest_s *,struct MpStatus_s * const)"
(?MpCommWaitall@@YAHPAUMpRequest_s@@QAUMpStatus_s@@@Z)

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_byte

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_double

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_float

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_long

como_mplib.lib(mpcomm.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_int

como_mplib.lib(mpenv.obj) : error LNK2019: unresolved external symbol
_MPI_Errhandler_set referenced in function "int __cdecl MpEnvConstr(int
*,char * * * const)" (?MpEnvConstr@@YAHPAHQAPAPAD@Z)

como_mplib.lib(mpenv.obj) : error LNK2001: unresolved external symbol
_ompi_mpi_errors_return

como_mplib.lib(mpenv.obj) : error LNK2019: unresolved external symbol
_MPI_Init referenced in function "int __cdecl MpEnvConstr(int *,char * *
* const)" (?MpEnvConstr@@YAHPAHQAPAPAD@Z)

como_mplib.lib(mpenv.obj) : error LNK2019: unresolved external symbol
_MPI_Finalize referenced in function "void __cdecl MpEnvFree(void)"
(?MpEnvFree@@YAXXZ)

 

What am I missing?

 

Thanks in advance for any assistance.

 

Alan



-----------------------------------------
This message is intended only for the individual or entity to which
it is addressed and contains information that is proprietary to The
Babcock & Wilcox Company and/or its affiliates, or may be otherwise
confidential.  If the reader of this message is not the intended
recipient, or the employee agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in
error, please notify the sender immediately by return e-mail and
delete this message from your computer.  Thank you.

Reply via email to