Re: [f2py] integers = 2226756?
"Michael Colonno" <mcolonno-FGKo4X94FMn2fBVCVOL8/[email protected]> Tue, 29 Mar 2011 07:56:02 -0700
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
I (finally) found a resolution to this which I'll post in case
anyone else runs into this problem (linking external libs on Windows x64) in
the future. In order to make F2PY link with my 3rd-party libs and its own
internal pieces I had to alias my Fortran subroutine as:
!DEC$ ATTRIBUTES C, DECORATE, ALIAS:'test_' :: test
It turns out that ATTRIBUTES C causes an incompatibility in how
data is passed between the various layers. By changing this to:
!DEC$ ATTRIBUTES ALIAS:'test_' :: test
I was able to make everything work. In addition
'/assume:nounderscore' was added to the Fortran compiler flags and
/Qlowercase was removed. If one has the source code for the external lib to
be linked this can all likely be avoided. For those (like me in this
situation) who do not these linking gymnastics may be necessary on Windows
platforms depending on how the lib was built.
Good luck,
~Mike C.
From: f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected] [mailto:f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]]
On Behalf Of [email protected]
Sent: Thursday, March 24, 2011 12:48 PM
To: For users of the f2py program
Subject: Re: [f2py] integers = 2226756?
Try
integer*8, intent(in) :: N
_______________________________________________
f2py-users mailing list
f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users