Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Linking failure on Windows
From: Gib Bogle (g.bogle_at_[hidden])
Date: 2012-10-01 23:57:54


Hi Damien,

I've checked and double-checked, and I can't see anything not 32-bit. In fact
my VS2005 only knows about 32-bit.

I just tested copying the source code with appropriate include directories to
another directory and built the executable successfully with mpicc. But I can't
see that there is anything in the mpicc link (with --showme:link) that is not in
VS. The command line in VS has a lot more stuff in it, to be sure.

Gib

On 2/10/2012 3:55 p.m., Damien Hocking wrote:
> Gib,
>
> If you have OMPI_IMPORTS set that usually removes those symbol errors. Are
> you absolutely sure you have everything set to 32-bit in Visual Studio?
>
> Damien
>
> On 01/10/2012 7:55 PM, Gib Bogle wrote:
>> I am building the Sundials examples, with MS Visual Studio 2005 version 8
>> (i.e. 32-bit) on Windows 7 64-bit. The OpenMPI version is OpenMPI_1.6.2-win32.
>> All the parallel examples fail with the same linker errors. I have added the
>> preprocessor definitions OMPI_IMPORTS, OPAL_IMPORTS and ORTE_IMPORTS. The
>> libraries that are being linked are: libmpi.lib, libmpi_cxx.lib,
>> libopen-pal.lib, libopen-rte.lib.
>>
>> Here are the errors:
>>
>> 1>Linking...
>> 1>sundials_nvecparallel.lib(nvector_parallel.obj) : error LNK2019: unresolved
>> external symbol _ompi_mpi_op_sum referenced in function _VAllReduce_Parallel
>> 1>sundials_nvecparallel.lib(nvector_parallel.obj) : error LNK2019: unresolved
>> external symbol _ompi_mpi_op_max referenced in function _VAllReduce_Parallel
>> 1>sundials_nvecparallel.lib(nvector_parallel.obj) : error LNK2019: unresolved
>> external symbol _ompi_mpi_double referenced in function _VAllReduce_Parallel
>> 1>sundials_nvecparallel.lib(nvector_parallel.obj) : error LNK2019: unresolved
>> external symbol _ompi_mpi_op_min referenced in function _VAllReduce_Parallel
>> 1>sundials_nvecparallel.lib(nvector_parallel.obj) : error LNK2019: unresolved
>> external symbol _ompi_mpi_long referenced in function _N_VNewEmpty_Parallel
>> 1>E:\Sundials-Win32\examples\cvode\parallel\Release\cvDiurnal_kry_bbd_p.exe :
>> fatal error LNK1120: 5 unresolved externals
>>
>> What am I missing?
>>
>> Thanks
>> Gib
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand
http://www.bioeng.auckland.ac.nz
g.bogle_at_[hidden]
(64-9) 373-7599 Ext. 87030