pyfort2 question

Berthold Hoellmann hoel at GermanLloyd.org
Thu Sep 16 08:40:15 EDT 1999


Jose L Gomez Dans wrote:
> 
> Hi!
>         I've just downloaded pyfort2, and I'm trying to convert a
> subroutine. Everything seems to work fine, and I get my <name>module.so in
> the end. When I try "from <name> import *", python complains that there is
> an udefined symbol G77_rand_0. I suppose it is related to some random
> routines I use in my fortran code.
> 
>         What can I do to get over this problem? I'm running linux, with g77
> and ld, and python 1.5.2, if that's of any help.

In your Setup file just add -lg2c to your compile flags. In general the
documentation should mention, that you have to link the Fortran runtime
library with any compiler.

Cheers

Berthold
-- 
email: hoel at GermanLloyd.org
   )
  (
C[_]  These opinions might be mine, but never those of my employer.




More information about the Python-list mailing list