<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi,</p>
    <p>Sorry I just realised that I was pointing to the wrong library.
      It's ok now.<br>
    </p>
    <div class="moz-forward-container"><br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Problem linking code with MS MPI + PETSc</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Tue, 27 Dec 2016 16:02:40 +0800</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>TAY wee-beng <a class="moz-txt-link-rfc2396E" href="mailto:zonexo@gmail.com"><zonexo@gmail.com></a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td>PETSc list <a class="moz-txt-link-rfc2396E" href="mailto:petsc-users@mcs.anl.gov"><petsc-users@mcs.anl.gov></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>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?


-- 
Thank you

Yours sincerely,

TAY wee-beng

</pre>
    </div>
  </body>
</html>