Re: [f2py] undefined symbol: G77_date_and_time_0

Audrey Hureau <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
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.
The name of extension module that I am building is ecri.so
I use ecri.so in my python program  but it can't find the intentetepy_ symbol which is used in ecri.f


> Date: Wed, 28 Jul 2010 12:18: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:03 PM, Audrey Hureau
> <[email protected]> wrote:
> > Actually, it seems to be a library problem with a lot of undefined symbols.
> > I found the f2c library where symbols are defined.
> 
> In that case you can use `f2py -c ... -lf2c`
> 
> > However, it seems that for each subroutine, f2py create a symbol. I have a
> > InitEntetePy routine. When I try to execute my python program, I still have
> > a undefined symbol initentetepy_
> 
> Usually Fortran compilers lower the cases of routine names and append
> underscore to the names.
> If they don't by default then they usually provide switches for that.
> For more information, please give answers to the questions below.
> 
> > Do you know something about the creation of symbols with f2py?
> 
> Could you give an example session how exactly do you call f2py that
> would give undefined symbol errors?
> What Fortran and C compilers (vendor and version) are you using?
> What Fortran compiler flags are you using?
> What is the name of extension module you are building?
> 
> 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
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.