<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=875435114-10092008>This has been fixed in the SVN
trunk.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=875435114-10092008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=875435114-10092008>Rajeev</SPAN></FONT></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of
</B>linzhenhua<BR><B>Sent:</B> Saturday, September 06, 2008 9:49
AM<BR><B>To:</B> mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re:RE:
[mpich-discuss] mpif90 and mpicc problems<BR></FONT><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV>I think I have also got similiar message when I just begin to try
mpich2. It bother me for quite some time.<BR><BR>Later I know if I just type
the command without source file,there will be such errors. I think it will
be better if the developers can change this default behavior when typing the
command without source file. <BR></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><BR>--<BR> </DIV><BR><PRE>在2008-09-06,"Rajeev Thakur" <thakur@mcs.anl.gov> 写道:
>Did you try to compile a program with mpicc/mpif90, i.e., "mpicc foo.c" or
>"mpif90 foo.f90"? If you just run "mpicc" or "mpif90", you will get
>something like the messages below.
>
>Do the example programs in the examples and examples/f90 directories
>compile?
>
>Rajeev
>
>
>
>> -----Original Message-----
>> From: owner-mpich-discuss@mcs.anl.gov
>> [mailto:owner-mpich-discuss@mcs.anl.gov] On Behalf Of jcrosby
>> Sent: Friday, September 05, 2008 9:34 AM
>> To: mpich-discuss@mcs.anl.gov
>> Subject: [mpich-discuss] mpif90 and mpicc problems
>>
>> Good morning,
>>
>> I'm having a few problems getting mpif90 and mpicc to work.
>> Whenever I run them I get the following errors:
>> MPIF90:
>> /opt/intel/fc/10.1.015/lib/for_main.o: In function `main':
>> /users/nbtester/x86linux_nightly/branch-10_1/20080313_000000/l
>> ibdev/frtl/src/libfor/for_main.c:(.text+0x39):
>> undefined reference to `MAIN__'
>>
>> MPICC:
>> /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crt1.o: In function
>> `_start':
>> (.text+0x18): undefined reference to `main'
>> collect2: ld returned 1 exit status
>>
>>
>> --
>> Joseph Crosby
>> Network Administrator
>> Scotia Weather Service Inc.
>> netadmin@scotiaweather.com
>> -----------
>> A byte walks into a bar and orders a pint. Bartender asks him
>> "What's wrong?" Byte says "Parity error." Bartender nods and
>> says "Yeah, I thought you looked a bit off."
>>
>>
>
</PRE><BR><!-- footer --><BR>
<HR>
<FONT style="FONT-SIZE: 12px; LINE-HEIGHT: 15px">超大花房赠送,60万</FONT><A
style="FONT-SIZE: 12px; COLOR: blue; LINE-HEIGHT: 15px; TEXT-DECORATION: underline"
href="http://popme.163.com/link/003984_0905_5286.html">轻松入住顺鑫花语</A></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>