Note that there are some explanatory texts on larger screens.

plurals
  1. POerror LNK2019: unresolved external symbol MPI_INIT referenced in function
    primarykey
    data
    text
    <p>I am trying to compile a software package called FDMNES for X-ray Absorption Spectra Modelling with MPI for the first time in Windows, using Visual Studio 2010 and a trial version of the Intel Composer XE 2011 SP1, ifort visual fortran compiler in conjunction with Intel Parrelel Studio 2011. I have managed to get all the object files compiled using the 64-bit version of ifort, but when it comes dime to link the files I recieve the followed error:</p> <pre><code>1&gt;------ Build started: Project: Console2, Configuration: Release x64 ------ 1&gt;Linking... 1&gt;main.obj : error LNK2019: unresolved external symbol MPI_INIT referenced in function MAIN__ 1&gt;main.obj : error LNK2019: unresolved external symbol MPI_COMM_SIZE referenced in function MAIN__ 1&gt;main.obj : error LNK2019: unresolved external symbol MPI_COMM_RANK referenced in function MAIN__ 1&gt;general.obj : error LNK2019: unresolved external symbol MPI_BCAST referenced in function RESEAU 1&gt;potential.obj : error LNK2001: unresolved external symbol MPI_BCAST 1&gt;main.obj : error LNK2001: unresolved external symbol MPI_BCAST ......etc 1&gt;x64\Release\Console2.exe : fatal error LNK1120: 7 unresolved externals 1&gt; 1&gt;Build log written to "file://C:\Users\Arturo\Documents\Visual Studio 2010\Projects\Console2\Console2\x64\Release\BuildLog.htm" 1&gt;Console2 - 18 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== </code></pre> <p>I've tried linking to the 64bit Intel MPI libraries, as well as MPICH2 64bit libraries by adding the command /L"C:\PathtoMPILibrary\" but to no avail. I have also tried using this makefile, running with gmake from a mingw32 package:</p> <pre><code>#Make file for the fdmnes package objects = main.obj clemf0.obj coabs.obj convolution.obj dirac.obj fdm.obj fprime.obj general.obj hubbard.obj lecture.obj mat.obj metric.obj minim.obj potential.obj scf.obj selec.obj spgroup.obj sphere.obj sub_util.obj tab_data.obj tddft.obj tensor.obj compiler = mpif90 -O3 -c fdmnes_mpi : $(objects) mpif90 -o fdmnes_mpi $(objects) main.obj : main.f $(compiler) main.f clemf0.obj : clemf0.f $(compiler) clemf0.f .....etc </code></pre> <p>But when I run gmake, I get the following error:</p> <pre><code>Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 12.1.0.233 Build 20110811 Copyright (C) 1985-2011 Intel Corporation. All rights reserved. ifort: error #10037: could not find 'link' </code></pre> <p>I've exhausted forums, and I need this to be compiled with MPI under 64bit windows. Any help would be very much appreciated! Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload