Re: [f2py] undefined symbol: G77_date_and_time_0

Audrey Hureau <[email protected]> Wed, 28 Jul 2010 12:01:53 +0200
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
When I use the " f2py -c ecri.pyf ecri.f90 --fcompiler=gnu95" command, I have too many errors from another file included in ecri.f90 and which normally works fine. 
Thank  you very much anyway for your answers.

> Date: Wed, 28 Jul 2010 12:48:58 +0300
> From: [email protected]
> To: f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> Subject: Re: [f2py] undefined symbol: G77_date_and_time_0
> 
> On Wed, Jul 28, 2010 at 12:34 PM, Audrey Hureau
> <[email protected]> wrote:
> > When I add -lf2c it can't find it because f2c isn't in /usr/bin/ld.
> > I use f2py with following commands:
> > 1- f2py ecri.f -m ecri -h ecri.pyf
> > 2- f2py -c ecri.pyf ecri.f --fcompiler=gnu95
> > I use f90 to compile Fortran and gcc for C programs.
> 
> Thanks for the info.
> In step 2 you specify gfortran for compiling Fortran sources but since
> the fortran source file has extension .f,
> the numpy.distutils might use g77 instead for compiling ecri.f. Try
> the following:
> 
> cp ecri.f ecri.f90
> f2py -c ecri.pyf ecri.f90 --fcompiler=gnu95
> 
> HTH,
> Pearu
> 
> _______________________________________________
> f2py-users mailing list
> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users

_______________________________________________
f2py-users mailing list
f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users