Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28383 Discussions

ERROR LNK 2001: unresolved external symbol _MPI_WIN_DUP_FN

Alexandre_M_1
Beginner
1,422 Views

I run the latest intel Parallel Studio XE Cluster Edition with MPI Library 2017 Release Update 2 on top of MS Visual Studio Enterprise 2015.

I am trying to debug a program to run in an MPI environment and followed what is listed at software.intel.com/en-us/node/610381.

I also ensured that the suggestions made in the past (in a previous topic I created) are correct in the project properties and I ran mpivars.bat (from C:\Program Files (x86)\IntelSWTools\mpi\2017.2.187\intel64\bin) as instructed in the same topic. The topic link is software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/712760:

  • Under Properties set (for all Configurations) set:
  •      Fortran > General > Additional Include Directories to $(I_MPI_ROOT)\intel64\include
  •      Linker > General > Additional Library Directories: $(I_MPI_ROOT)\intel64\lib\release
  •      Linker > Input > Additional Dependencies to impi.lib

However...  when I try to build, I have 20 errors similar to ERROR LNK 2001: unresolved external symbol _MPI_WIN_DUP_FN and to error LNK2019: unresolved external symbol _MPI_COMM_RANK referenced in function _MAIN__ - naturally, each with a different "external symbol". I only use the following MPI "commands" (these are ALL I use in different sections of the program):

      call MPI_INIT( ierr )
      call MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr )
      call MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr )

      call MPI_BCAST(nrep,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)      
      call MPI_BCAST(nvar,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)      
      call MPI_BCAST(ind_var,17,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)

        call MPI_BCAST(txe,1,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
        call MPI_BCAST(txc,1,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
        call MPI_BCAST(txm,1,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
        call MPI_BCAST(txr,1,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
        call MPI_BCAST(npop_real,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)
        call MPI_BCAST(i_criterio,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)
        call MPI_BCAST(nmaxgen,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)

        call MPI_GATHER(pop_loc,npop_loc,MPI_DOUBLE_PRECISION,pop,npop_loc,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
        call MPI_GATHER(apt_loc,npop_loc,MPI_DOUBLE_PRECISION,apt,npop_loc,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
        call MPI_GATHER(pen_loc,npop_loc,MPI_DOUBLE_PRECISION,pen,npop_loc,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)

        call MPI_Barrier(MPI_COMM_WORLD)

           call MPI_SCATTER(pop_red,npop_loc_red,MPI_DOUBLE_PRECISION,pop_loc,npop_loc_red,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
           call MPI_SCATTER(apt_red,npop_loc_red,MPI_DOUBLE_PRECISION,apt_loc,npop_loc_red,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
           call MPI_SCATTER(pen_red,npop_loc_red,MPI_DOUBLE_PRECISION,pen_loc,npop_loc_red,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)

           call MPI_GATHER(pop_loc,npop_loc_red,MPI_DOUBLE_PRECISION,pop_red,npop_red,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
           call MPI_GATHER(apt_loc,npop_loc_red,MPI_DOUBLE_PRECISION,apt_red,npop_red,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)
           call MPI_GATHER(pen_loc,npop_loc_red,MPI_DOUBLE_PRECISION,pen_red,npop_red,MPI_DOUBLE_PRECISION,0,MPI_COMM_WORLD,ierr)

 

 

Would anyone have any idea? Suggestions?

 

Many thanks,

Alex.

0 Kudos
6 Replies
Alexandre_M_1
Beginner
1,422 Views

This might be useful (the BuildLog.htm file):

 

Linking...
Link /OUT:"Debug\KEGA05.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.2.187\windows\mpi\intel64\lib\release" /MANIFEST /MANIFESTFILE:"Debug\KEGA05.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05\KEGA05\KEGA05\Debug\KEGA05.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05\KEGA05\KEGA05\Debug\KEGA05.lib" impi.lib -qm32 "Debug\GA_KE_05Bmpi1A.obj"
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol _MPIFCMB5 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol _MPIFCMB9 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol _MPIPRIV1 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol _MPIPRIV2 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol _MPIPRIVC imported
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_INIT referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_COMM_RANK referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_COMM_SIZE referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_BCAST referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_GATHER referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_BARRIER referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_SCATTER referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol _MPI_FINALIZE referenced in function _MAIN__
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_COMM_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_COMM_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_COMM_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_WIN_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_WIN_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_WIN_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_TYPE_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_TYPE_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_TYPE_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol _MPI_CONVERSION_FN_NULL
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.2.187\windows\mpi\intel64\lib\release\impi.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86'
Debug\KEGA05.exe : fatal error LNK1120: 21 unresolved externals
0 Kudos
Kevin_D_Intel
Employee
1,422 Views

Sounds potentially like a path issue within the build settings. Double check the Configuration settings you noted making are applicable to all Configurations. Sometimes settings can accidently get set to only a particular configuration.

Maybe someone can spot the cause if you can attach a complete build log that includes the errors.

0 Kudos
Kevin_D_Intel
Employee
1,422 Views

Our posts crossed. You are building the x86 (or Win32) configuration using "x64" paths. You need to create an "x64" build configuration and build that. The Intel MPI 2017 does not include IA-32 support (read here for more).

0 Kudos
Alexandre_M_1
Beginner
1,422 Views

Indeed our paths cross! Many thanks!

I am very confused. I started a new project, now configured as x64. The result was not encouraging... I have no clue about what to do next!?

I am attaching the log, if you or anyone can help.

Kind regards,

Alex.

 

===================================================

Build Log
   
 

Build started: Project: 09A_KEGA05mpi, Configuration: Debug|x64

Output
   
Compiling with Intel(R) Visual Fortran Compiler 17.0.2.187 [Intel(R) 64]...
ifort /nologo /debug:full /Od /warn:interfaces /module:"x64\Debug\\" /object:"x64\Debug\\" /Fd"x64\Debug\vc140.pdb" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\\bin\amd64" /Qm64 "D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90"
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(371): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985         format(I3,1X,I8,1X,D15.6,1X,D15.6,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,   &
--------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(371): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985         format(I3,1X,I8,1X,D15.6,1X,D15.6,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,   &
----------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(371): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985         format(I3,1X,I8,1X,D15.6,1X,D15.6,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,   &
------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(371): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985         format(I3,1X,I8,1X,D15.6,1X,D15.6,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,   &
--------------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(371): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985         format(I3,1X,I8,1X,D15.6,1X,D15.6,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,   &
----------------------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(371): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985         format(I3,1X,I8,1X,D15.6,1X,D15.6,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,   &
------------------------------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(371): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985         format(I3,1X,I8,1X,D15.6,1X,D15.6,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,   &
--------------------------------------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
-----------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
-------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
---------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
-----------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
-------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
---------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
-----------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
-------------------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
---------------------------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(372): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
                   1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
-----------------------------------------------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(987): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985   format(D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
--------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(987): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985   format(D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
----------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(987): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985   format(D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(987): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985   format(D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
--------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(987): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985   format(D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
----------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(987): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985   format(D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
------------------------------------------------------^
D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\GA_KE_05Bmpi1A.f90(987): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
985   format(D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3,1X,D9.3)
--------------------------------------------------------------^

Linking...
Link /OUT:"x64\Debug\09A_KEGA05mpi.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"x64\Debug\09A_KEGA05mpi.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\x64\Debug\09A_KEGA05mpi.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"D:\_1 - shared\_Arquivos\Alexandre\_Tecnicos\Meus Papers\09A_KEGA05mpi\09A_KEGA05mpi\x64\Debug\09A_KEGA05mpi.lib" -qm64 "x64\Debug\GA_KE_05Bmpi1A.obj"
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol MPIFCMB5 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol MPIFCMB9 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol MPIPRIV1 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol MPIPRIV2 imported
GA_KE_05Bmpi1A.obj : warning LNK4049: locally defined symbol MPIPRIVC imported
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_INIT referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_COMM_RANK referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_COMM_SIZE referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_BCAST referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_GATHER referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_BARRIER referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_SCATTER referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2019: unresolved external symbol MPI_FINALIZE referenced in function MAIN__
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_COMM_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_COMM_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_COMM_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_WIN_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_WIN_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_WIN_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_TYPE_DUP_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_TYPE_NULL_DELETE_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_TYPE_NULL_COPY_FN
GA_KE_05Bmpi1A.obj : error LNK2001: unresolved external symbol MPI_CONVERSION_FN_NULL
x64\Debug\09A_KEGA05mpi.exe : fatal error LNK1120: 21 unresolved externals


09A_KEGA05mpi - 22 error(s), 5 warning(s)
0 Kudos
Kevin_D_Intel
Employee
1,422 Views

This new project's build log does not show evidence of your having setup the Fortran and Linker properties cited in your original post. If you set those up then double check they apply to both the Release and Debug configurations.

0 Kudos
Alexandre_M_1
Beginner
1,422 Views

Kevin,

Thank you very much once more. I have absolutely no idea why things are not working the way they should but I found a way around it: I copied the impi.lib file to the work directory and it is working ok. The path "$(I_MPI_ROOT)\intel64\lib\release" is correctly listed in the Additional Library Directories under Linker - as it was in the past and it worked that way...

The point is it is working now so I am happy. I use my local machine (1 quad-core i5 3690K cpu) for coding and debugging only then upload to a high performance machine for execution.

I managed to learn where I make permanent for my projects to start as x64 and even found out that I could optimise my code for my cpu family (thanks Intel!).

Once more, many thanks for always stepping in to help!

Kind regards,

Alex.

0 Kudos
Reply