Getting link error with iargc/-J option

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jan 10 20:03:00 GMT 2007


On Wed, Jan 10, 2007 at 01:12:12PM -0600, Ray Nachlinger wrote:
> On Wed, 10 Jan 2007, Paul T. Bauman wrote:
> 
> > Added '-fall-intrinsics' to my command line options, but still the same
> > problem.  Would I need to recompile MPICH/PETSc with this option?
> > 
> > Add -Iobj fixed the second problem.
> > 
> 
>   You may have the following problem.
> 
>       external iargc
>       i = iargc()
>       end
> 
>   Has the problem you have, but
> 
>       i = iargc()
>       end
> 
>   does not. I believe that these intrinsics were converted
>   to be inline, but simply know it worked for me.
> 

No, it is not inlined.  libgfortran tries to separate its
library namespace from the user's namespace.  Without the
"external iargc", gfortran translates iargc to _gfortran_iargc_
(ie., the libgfortran's routine).  With "external iargc" gfortran
is expecting the user to supply a function named _iargc_.

-- 
Steve



More information about the Fortran mailing list