Quantcast
Channel: error LNK2019: unresolved external symbol MPI_INIT referenced in function - Stack Overflow
Viewing all articles
Browse latest Browse all 3

error LNK2019: unresolved external symbol MPI_INIT referenced in function

$
0
0

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:

1>------ Build started: Project: Console2, Configuration: Release x64 ------1>Linking...1>main.obj : error LNK2019: unresolved external symbol MPI_INIT referenced in function MAIN__1>main.obj : error LNK2019: unresolved external symbol MPI_COMM_SIZE referenced in function MAIN__1>main.obj : error LNK2019: unresolved external symbol MPI_COMM_RANK referenced in function MAIN__1>general.obj : error LNK2019: unresolved external symbol MPI_BCAST referenced in function RESEAU1>potential.obj : error LNK2001: unresolved external symbol MPI_BCAST1>main.obj : error LNK2001: unresolved external symbol MPI_BCAST......etc1>x64\Release\Console2.exe : fatal error LNK1120: 7 unresolved externals1>1>Build log written to  "file://C:\Users\Arturo\Documents\Visual Studio 2010\Projects\Console2\Console2\x64\Release\BuildLog.htm"1>Console2 - 18 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

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:

#Make file for the fdmnes packageobjects = 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.objcompiler = mpif90 -O3 -cfdmnes_mpi : $(objects)    mpif90 -o fdmnes_mpi $(objects)main.obj : main.f    $(compiler) main.f clemf0.obj : clemf0.f    $(compiler) clemf0.f.....etc

But when I run gmake, I get the following error:

Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64,Version 12.1.0.233 Build 20110811Copyright (C) 1985-2011 Intel Corporation. All rights reserved.ifort: error #10037: could not find 'link'

I've exhausted forums, and I need this to be compiled with MPI under 64bit windows. Any help would be very much appreciated! Thanks.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images