[mpich-discuss] Fwd: A MPICH beginner's question,

Peng Zhang spkevabn at gmail.com
Mon Feb 18 02:56:24 CST 2013


Jayesh Krishna <mpich-discuss at mcs.anl.gov>:



    Hi ,thank you for reading my E-mail, I'm a Chinese hydrodynamic student
and helping my teacher to upgrade an old  software, but I am facing a
problem now.    :(

    My system condition is :

    Win7 64bit + VS2010 + IVF Composer XE 2011

    I downloaded "mpich2-1.4.1p1-win-ia3"  and  "mpich2-1.4.1p1-win-x86-64"
 ( I  have tried both two .msi)



    I have run  smpd.exe  to install MPICH  (run as Administrator) and
registered the servere (smpd.exe -regserver)



    After creating a new IVF Console Application project, I set :

    1、Win32 to x64,

    2、 Set "Fortran\General\Additional Include Directories"  to "C:\Program
Files (x86)\MPICH2\include;"  (I have tried 64bit too,but return the same
result)

    3、 Set"Linker\General\Additional Library Directories" to "C:\Program
Files (x86)\MPICH2\lib;"

    4、Set"Linker\Input\ Additional Dependencies" to "mpi.lib"



    Then I wrote a piece code of  "Hello World" 。



    program Lab



    include 'mpif.h'



    character * (MPI_MAX_PROCESSOR_NAME) processor_name

    integer myid,numprocs,namelen,rc,ierr



    call MPI_INIT(ierr)

    call MPI_COMM_RANK(MPI_COMM_WORLD,myid,ierr)

    call MPI_COMM_SIZE(MPI_COMM_WORLD,numprocs,ierr)

    call MPI_GET_PROCESSOR_NAME(processor_name,namelen,ierr)

    write(*,10) myid,numprocs,processor_name

 10  FORMAT('Hello World!Process',I2,'of',I1,'on',20A)

    call MPI_FINALIZE(rc)



    end program Lab


    But there is a error "Cannot open mpi.lib"

[image: 内嵌图片 1]

I'm sure that the file path is correct (I have tried 64bit already.)

[image: 内嵌图片 2]

I have search the answer in Google for two days, unfortunaly I'm
failed.   I request you to give me some hints,Please.
*__*..

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130218/4106be80/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: path.jpg
Type: image/jpeg
Size: 35774 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130218/4106be80/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error 11018.jpg
Type: image/jpeg
Size: 60986 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130218/4106be80/attachment-0001.jpg>


More information about the discuss mailing list