Re: [f2py] undefined symbol: G77_date_and_time_0

Jürgen Wieferink <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Pearu Peterson wrote (Monday 26 July 2010 14:37:05):
> On 07/26/2010 09:38 AM, Audrey Hureau wrote:
> > Hi everyone,
> >
> > I'm using f2py and it's working pretty good however, I've got an error
> > when I'm trying tu use a subroutine which calls date_and_time function :
> > "File.so: undefined symbol: G77_date_and_time_0"
> > Do you know what does it mean?
> 
> What fortran compiler are you using? Looking into the gfortran library
> files I see that date_and_time function is available starting
> at gfortran version 4.3.x.
> 
> Usually when one gets undefined symbol error messages then one needs
> to find out in which library the symbol is defined (using the nm
> program, for instance) and then use
> this library when building extension library. For example,
> if a symbol foo is defined in /path/to/libbar.a then use
> the following f2py command line:
>    f2py -c .. -L/path/to -lbar.

True.  But in this special case, where there is a compiler name
within the missing symbol, it might even be enough to simply link
with the same compiler which has been used to compile.  If you use
f2py to link without compiling any Fortran file, you might need to
fool it with an empty .f or .f90 file.

Juergen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.