thanks..can that not be fixed using the same version ? what fix i have to apply?<br><br><div class="gmail_quote">On Thu, Sep 22, 2011 at 11:34 PM, Anthony Chan <span dir="ltr"><<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
That means Fortran binding was not built correctly.<br>
Sorry, you need to use mpich2.<br>
<br>
A.Chan<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
> when i try to execute helloworld.f90 code, i get following error.<br>
><br>
> ../bin/mpif90 helloworld.f90<br>
> /par1/mpich/install/lib/libmpich.a(farg.o): In function<br>
> `mpir_iargc__':<br>
> farg.f:(.text+0x6): undefined reference to `f__xargc'<br>
> /par1/mpich/install/lib/libmpich.a(farg.o): In function<br>
> `mpir_getarg__':<br>
> farg.f:(.text+0x38): undefined reference to `getarg_'<br>
> collect2: ld returned 1 exit status<br>
> --------------------------------<br>
> 01.program helloWorld<br>
> 02. implicit none<br>
> 03. include "mpif.h"<br>
> 04. integer :: myPE, numProcs, ierr<br>
> 05. call MPI_INIT(ierr)<br>
> 06. call MPI_COMM_RANK(MPI_COMM_WORLD, myPE, ierr)<br>
> 07. call MPI_COMM_SIZE(MPI_COMM_WORLD, numProcs, ierr)<br>
> 08. print *, "Hello World from ", myPE<br>
> 09. call MPI_FINALIZE(ierr)<br>
> 10.end program helloWorld<br>
> ----------------------------------<br>
> I have some other programs to run . Can you suggest a way out ?<br>
><br>
> RIGVED<br>
><br>
> On Wed, Sep 21, 2011 at 9:53 PM, Anthony Chan <<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>><br>
> wrote:<br>
><br>
> ><br>
> ><br>
> > ----- Original Message -----<br>
> ><br>
> > > when i execute the command mpif90 -v, i get following error. Any<br>
> > > solution<br>
> > > for this linking issue sir<br>
> > ><br>
> > ><br>
> > > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgfortranbegin.a(fmain.o):<br>
> > > In<br>
> > > function `main':<br>
> > > (.text+0xa): undefined reference to `MAIN__'<br>
> > > collect2: ld returned 1 exit status<br>
> ><br>
> > Don't worry about that. MPICH-1's fortran compiler wrapper isn't<br>
> > careful<br>
> > about<br>
> > this case. Try using mpif90 to compile a fortran MPI program and see<br>
> > if it<br>
> > runs.<br>
> > Again, we don't support it so you are on your own.<br>
> ><br>
> > A.Chan<br>
> > _______________________________________________<br>
> > mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> > To manage subscription options or unsubscribe:<br>
> > <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
> ><br>
><br>
> _______________________________________________<br>
> mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br>