<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2> The error message says it all,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2>==========================</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009>cannot open input file
'mpi.lib'</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff
size=2>==========================</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2><SPAN
class=561322618-04022009></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2><SPAN class=561322618-04022009> Make sure that you
have specified the path to mpi.lib correctly.</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2><SPAN
class=561322618-04022009></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2><SPAN class=561322618-04022009>(PS: You can ask your system
administrator to help you with the Visual Studio project
settings)</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2><SPAN
class=561322618-04022009>Regards,</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2><SPAN
class=561322618-04022009>Jayesh</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=561322618-04022009><FONT face=Arial
color=#0000ff size=2> </FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> kuldeep matarasi
[mailto:kuldeep22011984@yahoo.com] <BR><B>Sent:</B> Wednesday, February 04, 2009
12:25 PM<BR><B>To:</B> jayesh@mcs.anl.gov<BR><B>Subject:</B> RE:
Hi<BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>Thank You so much Jayesh, i tried the steps that you
mentioned but this time it is giving a different error message.Could you
please let me know what i could do?Thank You<BR>Kuldeep M<BR>1>------
Build started: Project: hellpmic, Configuration: Debug Win32
------<BR>1>Linking...<BR>1>LINK : fatal error LNK1181: cannot open
input file 'mpi.lib'<BR>1>Build log was saved at "file://c:\Documents
and Settings\kmatharasi\My Documents\Visual Studio
2005\Projects\hellpmi.c\hellpmi.c\Debug\BuildLog.htm"<BR>1>hellpmi.c -
1 error(s), 0 warning(s)<BR>========== Build: 0 succeeded, 1 failed, 0
up-to-date, 0 skipped ==========<BR><BR><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<DIV id=yiv372728333>
<DIV class=gmail_quote><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD
style="FONT-FAMILY: inherit; font-size-adjust: inherit; font-stretch: inherit"
vAlign=top><BR><BR>--- On <B>Wed, 2/4/09, Jayesh Krishna
<I><<A href="mailto:jayesh@mcs.anl.gov" target=_blank
rel=nofollow>jayesh@mcs.anl.gov</A>></I></B> wrote:<BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From:
Jayesh Krishna <<A href="mailto:jayesh@mcs.anl.gov"
target=_blank
rel=nofollow>jayesh@mcs.anl.gov</A>><BR>Subject: RE:
Hi<BR>To: <A href="mailto:kuldeep22011984@yahoo.com"
target=_blank
rel=nofollow>kuldeep22011984@yahoo.com</A><BR>Cc: <A
href="mailto:mpich-discuss@mcs.anl.gov" target=_blank
rel=nofollow>mpich-discuss@mcs.anl.gov</A><BR>Date: Wednesday,
February 4, 2009, 9:42 PM<BR><BR>
<DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN> The linker error indicates that you have
not specified the MPICH2 libraries as "Additional
dependencies" for the linker.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN> Specify the path of MPICH2 libraries (the
default path is "c:\program files\mpich2\lib") in "Additional
library directories" (Project properties --> Configuration
properties --> Linker --> Additional library
directories). Specify the MPICH2 libraries (mpi.lib) as
"Additional dependencies" (Project properties -->
Configuration properties --> Linker --> Input -->
Additional dependencies).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN> You can find this information in the
windows developer's guide (available at <A
href="http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs"
target=_blank
rel=nofollow>http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs</A>).
You can also refer to the example project files installed with
MPICH2 (examples\examples.sln).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN> Let us know if you still have
problems.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>Jayesh</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> kuldeep matarasi
[mailto:<A href="mailto:kuldeep22011984@yahoo.com"
target=_blank rel=nofollow>kuldeep22011984@yahoo.com</A>]
<BR><B>Sent:</B> Wednesday, February 04, 2009 9:57
AM<BR><B>To:</B> <A href="mailto:jayesh@mcs.anl.gov"
target=_blank
rel=nofollow>jayesh@mcs.anl.gov</A><BR><B>Subject:</B>
Hi<BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top><PRE>Hello,<BR> I'm a newbie in MPI ,i have a problem when trying to execute a "hello world" application. I'm using<BR>Microsoft Visual C++ 2005 on a Windows Machine and I have installed mpich2 on windows xp <BR><BR>I will be grateful to you if you could please help me fix.Thanks for your time.<BR>Regards<BR>Kuldeep M<BR><BR> <BR><BR>My code is:<BR><BR>#include "mpi.h"<BR>#include <stdio.h><BR><BR>int main( int argc, char *argv[] )<BR><BR>{<BR> MPI_Init( &argc, &argv );<BR> printf( "Hello, world!\n" );<BR> MPI_Finalize();<BR> return 0;<BR>}<BR><BR>1>------ Build started: Project: mpihello.c, Configuration: Debug Win32 ------<BR><BR>1>Linking...<BR>1>mpihello.obj : error LNK2019: unresolved external symbol _MPI_Finalize referenced in function _main<BR>1>mpihello.obj : error LNK2019: unresolved external symbol _MPI_Init referenced<BR> in function _main<BR><BR>1>C:\Documents and
Settings\kmatharasi\My<BR> Documents\Visual Studio 2005\Projects\mpihello.c\Debug\mpihello.c.exe : fatal error LNK1120: 2 unresolved externals<BR>1>Build log was saved at "file://c:\Documents and Settings\kmatharasi\My Documents\Visual Studio 2005\Projects\mpihello.c\mpihello.c\Debug\BuildLog.htm"<BR><BR>1>mpihello.c - 3 error(s), 0 warning(s)<BR>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<BR></PRE></TD></TR></TBODY></TABLE><BR></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></BODY></HTML>