Re: [f2py] undefined symbol: G77_date_and_time_0
Pearu Peterson <[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
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. Pearu