<!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><FONT face=Arial color=#0000ff size=2><SPAN
class=751350516-04022009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=751350516-04022009> 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
class=751350516-04022009> 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
class=751350516-04022009> 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">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
class=751350516-04022009> Let us know if you still have
problems.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=751350516-04022009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=751350516-04022009>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=751350516-04022009>Jayesh</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=751350516-04022009> </SPAN></FONT></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
9:57 AM<BR><B>To:</B> jayesh@mcs.anl.gov<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>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> 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>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
in function _main<BR>1>C:\Documents and Settings\kmatharasi\My 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>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></BODY></HTML>