Have you checked whether the Open MPI libraries and your solution are all 64 bit versions?

Shiqing


On 2012-07-27 3:23 PM, Sayre, Alan N wrote:

Thank you both for your help. I added the preprocessor flags. I cleaned and rebuilt. I now get the same messages with "---imp" inserted at the beginning of each missing symbol e.g.

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol __imp__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 __imp__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 __imp__ompi_mpi_info_null

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

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

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

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

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

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol __imp__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 __imp__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 __imp__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 __imp__MPI_Comm_rank

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol __imp__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 __imp__MPI_Comm_size

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

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

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol __imp__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 __imp__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 __imp__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 __imp__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 __imp__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 __imp__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 __imp__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 __imp__ompi_mpi_char

como_mplib.lib(mpcomm.obj) : error LNK2019: unresolved external symbol __imp__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 __imp__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 __imp__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 __imp__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 __imp__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 __imp__ompi_mpi_byte

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

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

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

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

como_mplib.lib(mpenv.obj) : error LNK2019: unresolved external symbol __imp__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 __imp__ompi_mpi_errors_return

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

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

Alan

*From:*users-boun...@open-mpi.org [mailto:users-boun...@open-mpi.org] *On Behalf Of *Shiqing Fan
*Sent:* Friday, July 27, 2012 7:52 AM
*To:* Open MPI Users
*Cc:* Damien
*Subject:* Re: [OMPI users] compilation on windows 7 64-bit


FYI. I've just made an update for this issue in trunk. There will be no need to define this flags in the next releases.


Shiqing

On 2012-07-27 12:24 AM, Damien wrote:

    Do you have

    OMPI_IMPORTS, OPAL_IMPORTS and ORTE_IMPORTS

    defined in your preprocessor flags?  You need those.

    Damien

    On 26/07/2012 3:56 PM, Sayre, Alan N wrote:

        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. *




        _______________________________________________

        users mailing list

        us...@open-mpi.org  <mailto:us...@open-mpi.org>

        http://www.open-mpi.org/mailman/listinfo.cgi/users





    _______________________________________________

    users mailing list

    us...@open-mpi.org  <mailto:us...@open-mpi.org>

    http://www.open-mpi.org/mailman/listinfo.cgi/users




--
---------------------------------------------------------------
Shiqing Fan
High Performance Computing Center Stuttgart (HLRS)
Tel: ++49(0)711-685-87234      Nobelstrasse 19
Fax: ++49(0)711-685-65832      70569 Stuttgart
http://www.hlrs.de/organization/people/shiqing-fan/
email:f...@hlrs.de  <mailto:f...@hlrs.de>


--
---------------------------------------------------------------
Shiqing Fan
High Performance Computing Center Stuttgart (HLRS)
Tel: ++49(0)711-685-87234      Nobelstrasse 19
Fax: ++49(0)711-685-65832      70569 Stuttgart
http://www.hlrs.de/organization/people/shiqing-fan/
email: f...@hlrs.de

Reply via email to