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
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users