c++ - Installed MPI but still linker error LNK2019 appears -
i've installed ms-mpiv5 microsoft , debugger msmpi. in proejct properties in vs2012, i've changed c/c++ -> additional include libraries adding "$(msmpi_inc); $(msmpi_inc)\x64" , linker -> options->additional dependencies adding "msmpi.lib;", vs still giving me al lot of linker errors such
error lnk2019: unresolved external symbol _mpi_barrier@4
unresolved external symbol _mpi_bcast@20
and on, mpi functions or type of variables. there forgot change or add?
i haven't used 2012, if it's similar older versions of vs this detailed link may help. in general make sure these 3 things:
- add "additional include directories"
- add "additional library directories"
- add "additional dependencies" (msimpi.lib)
it sounds may missing 2nd step?
Comments
Post a Comment