Ticket #687 (assigned bug)
which library should be used in windows with cvf
| Reported by: | 雪媛 聂 <nie_xueyuan@…> | Owned by: | jayesh |
|---|---|---|---|
| Priority: | major | Milestone: | mpich2-1.3 |
| Component: | mpich2 | Keywords: | |
| Cc: |
Description (last modified by jayesh) (diff)
Hello,
I downloaded mpich2-1.0.8p1-win-ia32 from
http://www.mcs.anl.gov/research/projects/mpich2/ . I followed the steps
described by README.winbin which was generated after the mpich2 installed. If
I compiled and linked the file which only includes the six basic functions, the
file can be compiled and linked successfully. But if my program employed other
functions, such as mpi_scatterv, mpi_gatherv, the link process could be failed.
In the projection settings, I already added fmpich2s.lib to the object/library
modules.
The error information are as follows,
Linking...
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_BARRIER@8 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_BCAST@24 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_COMM_RANK@12 already defined
in fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_COMM_SIZE@12 already defined
in fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_FINALIZE@4 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_INIT@4 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_RECV@32 already defined in
fmpich2s.lib(fmpich2s.dll)
imslmpistub.lib(MPISTUB.obj) : error LNK2005: _MPI_SEND@28 already defined in
fmpich2s.lib(fmpich2s.dll)
Debug/automacro.exe : fatal error LNK1169: one or more multiply defined symbols
found
Error executing link.exe.
automacro.exe - 9 error(s), 0 warning(s)
I also tried to add fmpich2g.lib to the link option, the same error information
appears.
If I only add fmpich2.lib to the link option, link error would be
Linking...
automacro.obj : error LNK2001: unresolved external symbol _MPI_SCATTER@36
automacro.obj : error LNK2001: unresolved external symbol _MPI_SCATTERV@40
automacro.obj : error LNK2001: unresolved external symbol _MPI_GATHERV@40
Debug/automacro.exe : fatal error LNK1120: 3 unresolved externals
Could you please help me solve the problems. Now I am puzzled that which
library I should use to make the functions such as mpi_scatterv, resolved ?
Thanks a lot.
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
