[mpich-discuss] Hi

Jayesh Krishna jayesh at mcs.anl.gov
Wed Feb 4 13:16:35 CST 2009


Hi,
 Change your VS solution configuration to "Release" (the default is
"Debug"). If you need to include debug information look into the VS
project linker settings to add debug information.
 
Regards,
Jayesh

  _____  

From: kuldeep matarasi [mailto:kuldeep22011984 at yahoo.com] 
Sent: Wednesday, February 04, 2009 1:00 PM
To: Jayesh Krishna
Subject: RE: Hi


Thank you so much i was able to figure that out and i run the program and
i am getting this output which says no binaries built with debug
information.May i know about this?Thank You

'hellpmi.c.exe': Loaded 'C:\Documents and Settings\kmatharasi\My
Documents\Visual Studio 2005\Projects\hellpmi.c\debug\hellpmi.c.exe',
Binary was not built with debug information.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\mpich2mpi.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\mpich2.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\mswsock.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\mpr.dll', No symbols loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\activeds.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\adsldpc.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\atl.dll', No symbols loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\ntdsapi.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\dnsapi.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\Program Files\Google\Google Desktop
Search\GoogleDesktopNetwork3.dll', No symbols loaded.
'hellpmi.c.exe': Unloaded 'C:\Program Files\Google\Google Desktop
Search\GoogleDesktopNetwork3.dll'
The thread 'Win32 Thread' (0x118c) has exited with code 0 (0x0).
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\hnetcfg.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\wshtcpip.dll', No symbols
loaded.
First-chance exception at 0x7c812aeb in hellpmi.c.exe: 0x000006D9: There
are no more endpoints available from the endpoint mapper.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\winrnr.dll', No symbols
loaded.
'hellpmi.c.exe': Loaded 'C:\WINDOWS\system32\rasadhlp.dll', No symbols
loaded.
The program '[4844] hellpmi.c.exe: Native' has exited with code 0 (0x0).



--- On Wed, 2/4/09, Jayesh Krishna <jayesh at mcs.anl.gov> wrote:



From: Jayesh Krishna <jayesh at mcs.anl.gov>
Subject: RE: Hi
To: kuldeep22011984 at yahoo.com
Cc: mpich-discuss at mcs.anl.gov
Date: Wednesday, February 4, 2009, 11:59 PM


Hi,
 The error message says it all,
 
==========================
cannot open input file 'mpi.lib'
==========================
 
 Make sure that you have specified the path to mpi.lib correctly.
 
(PS: You can ask your system administrator to help you with the Visual
Studio project settings)
Regards,
Jayesh
 

  _____  

From: kuldeep matarasi [mailto:kuldeep22011984 at yahoo.com] 
Sent: Wednesday, February 04, 2009 12:25 PM
To: jayesh at mcs.anl.gov
Subject: RE: Hi


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
Kuldeep M
1>------ Build started: Project: hellpmic, Configuration: Debug Win32
------
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'mpi.lib'
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"
1>hellpmi.c - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========








--- On Wed, 2/4/09, Jayesh Krishna <jayesh at mcs.anl.gov> wrote:



From: Jayesh Krishna <jayesh at mcs.anl.gov>
Subject: RE: Hi
To: kuldeep22011984 at yahoo.com
Cc: mpich-discuss at mcs.anl.gov
Date: Wednesday, February 4, 2009, 9:42 PM


Hi,
 The linker error indicates that you have not specified the MPICH2
libraries as "Additional dependencies" for the linker.
 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).
 You can find this information in the windows developer's guide (available
at
http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=
docs). You can also refer to the example project files installed with
MPICH2 (examples\examples.sln).
 Let us know if you still have problems.
 
Regards,
Jayesh
 

  _____  

From: kuldeep matarasi [mailto:kuldeep22011984 at yahoo.com] 
Sent: Wednesday, February 04, 2009 9:57 AM
To: jayesh at mcs.anl.gov
Subject: Hi



Hello,
 I'm a newbie in MPI ,i have a problem when trying to execute a "hello
world" application. I'm using
Microsoft Visual C++ 2005 on a Windows Machine and I have installed mpich2
on windows xp 

I will be grateful to you if you could please help me fix.Thanks for your
time.
Regards
Kuldeep M

 

My code is:

#include "mpi.h"
#include <stdio.h>

int main( int argc, char *argv[] )

{
    MPI_Init( &argc, &argv );
    printf( "Hello, world!\n" );
    MPI_Finalize();
    return 0;
}

1>------ Build started: Project: mpihello.c, Configuration: Debug Win32
------

1>Linking...
1>mpihello.obj : error LNK2019: unresolved external symbol _MPI_Finalize
referenced in function _main
1>mpihello.obj : error LNK2019: unresolved external symbol _MPI_Init
referenced
 in function

 _main

1>C:\Documents and
 Settings\kmatharasi\My
 Documents\Visual Studio 2005\Projects\mpihello.c\Debug\mpihello.c.exe :
fatal error LNK1120: 2 unresolved externals
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"

1>mpihello.c - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090204/2491cd44/attachment-0001.htm>


More information about the mpich-discuss mailing list