So mpicc builds it completely? The only thing I can think of is look
closely at both the compile and link command lines and see what's
different. It might be going sideways at the compile from something in
an include with a preprocessor def.
Damien
On 01/10/2012 9:57 PM, Gib Bogle wrote:
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
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users