[petsc-users] Fwd: Problem linking code with MS MPI + PETSc

Satish Balay balay at mcs.anl.gov
Tue Dec 27 11:19:08 CST 2016


Its good to always verify if a petsc example with makefile works [or
reproduces the same error]

If the petsc example with petsc makefile works - then you would look
at the differences bettween this compile - and yours..

Satish

On Tue, 27 Dec 2016, TAY wee-beng wrote:

> Hi,
> 
> Sorry I just realised that I was pointing to the wrong library. It's ok now.
> 
> 
> 
> -------- Forwarded Message --------
> Subject: 	Problem linking code with MS MPI + PETSc
> Date: 	Tue, 27 Dec 2016 16:02:40 +0800
> From: 	TAY wee-beng <zonexo at gmail.com>
> To: 	PETSc list <petsc-users at mcs.anl.gov>
> 
> 
> 
> Hi,
> 
> I am now trying to use MS MPI after compiling with PETSc. I was using
> MPICH before.
> 
> During linking, I got the error:
> 
> 1>Compiling manifest to resources...
> 1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>Linking...
> 1>libpetsc.lib(somefort.o) : warning LNK4049: locally defined symbol
> MPIFCMB1 imported
> 1>libpetsc.lib(f90_fwrap.o) : warning LNK4049: locally defined symbol
> MPIFCMB1 imported
> 1>libpetsc.lib(somefort.o) : warning LNK4049: locally defined symbol
> MPIFCMB2 imported
> 1>libpetsc.lib(f90_fwrap.o) : warning LNK4049: locally defined symbol
> MPIFCMB2 imported
> 1>libpetsc.lib(somefort.o) : warning LNK4049: locally defined symbol
> MPIFCMB3 imported
> 1>libpetsc.lib(f90_fwrap.o) : warning LNK4049: locally defined symbol
> MPIFCMB3 imported
> 1>libpetsc.lib(somefort.o) : warning LNK4049: locally defined symbol
> MPIFCMB4 imported
> 1>libpetsc.lib(f90_fwrap.o) : warning LNK4049: locally defined symbol
> MPIFCMB4 imported
> 1>libpetsc.lib(somefort.o) : warning LNK4049: locally defined symbol
> MPIFCMB7 imported
> 1>libpetsc.lib(f90_fwrap.o) : warning LNK4049: locally defined symbol
> MPIFCMB7 imported
> 1>libpetsc.lib(somefort.o) : warning LNK4049: locally defined symbol
> MPIFCMB8 imported
> 1>libpetsc.lib(f90_fwrap.o) : warning LNK4049: locally defined symbol
> MPIFCMB8 imported
> 1>libpetsc.lib(pinit.o) : error LNK2019: unresolved external symbol
> MPI_Reduce_scatter_block referenced in function PetscMaxSum
> 1>libpetsc.lib(mpits.o) : error LNK2001: unresolved external symbol
> MPI_Reduce_scatter_block
> 1>C:\Obj_tmp\ibm3d_IIB_mpi\Debug\ibm3d_IIB_mpi.exe : fatal error
> LNK1120: 1 unresolved externals
> 1>
> 
> 
> May I know what's wrong?
> 
> 
> 



More information about the petsc-users mailing list