title: openmpi error during compilation
body: <p>I am trying to locally compile software which uses openmpi (1.6.3),
  but I got this error:</p>
  
  <blockquote>
    <blockquote>
      <p>restraint_camshift2.o:(.toc+0x98): undefined reference to
      `ompi_mpi_cxx_op_intercept' </p>
      
      <p>restraint_camshift2.o: In function
      `Intracomm':</p>
      
      <p>/home/users/didymos/openmpi-1.6.3/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
      undefined reference to `MPI::Comm::Comm()'</p>
      
      <p>/home/users/didymos/openmpi-1.6.3/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
      undefined reference to <code>MPI::Comm::Comm()' restraint_camshift2.o: In
      function</code>Intracomm':</p>
      
      <p>/home/users/didymos/openmpi-1.6.3/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23:
      undefined reference to <code>MPI::Comm::Comm()' restraint_camshift2.o: In
      function</code>Intracomm':</p>
      
      <p>/home/users/didymos/openmpi-1.6.3/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
      undefined reference to `MPI::Comm::Comm()'</p>
      
      <p>/home/users/didymos/openmpi-1.6.3/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
      undefined reference to `MPI::Comm::Comm()'</p>
      
      <p>restraint_camshift2.o:/home/users/didymos/openmpi-1.6.3/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
      more undefined references to `MPI::Comm::Comm()' follow
      restraint_camshift2.o:(.data.rel.ro._ZTVN3MPI3WinE[_ZTVN3MPI3WinE]+0x48):</p>
      
      <p>undefined reference to `MPI::Win::Free()'
      restraint_camshift2.o:(.data.rel.ro._ZTVN3MPI8DatatypeE[_ZTVN3MPI8DatatypeE]+0x78):</p>
      
      <p>undefined reference to `MPI::Datatype::Free()' collect2: error: ld</p>
      
      <p>returned 1 exit status make[3]: <em>*</em> [mdrun] Error 1 make[3]: Leaving</p>
      
      <p>directory `/home/users/didymos/src/gromacs-4.5.5/src/kernel' make[2]: <em>*</em> [all-recursive] Error 1</p>
      
      <p>make[2]: Leaving directory `/home/users/didymos/src/gromacs-4.5.5/src'</p>
      
      <p>make[1]: <em>*</em> [all] Error 2</p>
      
      <p>make[1]: Leaving directory `/home/users/didymos/src/gromacs-4.5.5/src'</p>
      
      <p>make: <em>*</em> [all-recursive] Error 1</p>
    </blockquote>
  </blockquote>
  
  <p>I am using gcc 4.7.3
  Any ideas or suggestions?
  Thanks!
  Best,</p>
  
  <p>tomek</p>