Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Unresolved External symbol - MPI Compilation

$
0
0

Hi,

I am trying to compile a setup for my current code on a new machine in Visual Studio.

I have made the changes in the following places:

Properties -> Fortran -> General -> Add include directories as "C:\Program Files\OpenMPI_v1.6-win32\include" 

Properties -> Fortran -> PreProcessing -> Add include directories as "C:\Program Files\OpenMPI_v1.6-win32\include" 

Properties -> Linker-> General-> Add Library Dependencies as C:\Program Files\OpenMPI_v1.6-win32\lib;

Properties -> Linker-> Input -> Additional Dependencies as libmpi.lib libmpi_cxx.lib libmpi_cxxd.lib libmpi_f77d.lib libmpid.lib libopen-pal.lib libopen-pald.lib libopen-rte.lib libopen-rted.lib

I believe the above steps got me working on my previous machine, but I still keep getting compile errors like these:

Error    1     error LNK2019: unresolved external symbol _MPI_INIT 

Any reason why i should get this?

PS: I change the link to the MPI directory to x64 OpenMPI 1.62 when I run in my new system

 

 


Viewing all articles
Browse latest Browse all 3270


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>