Re: [ctypes-users] Accessing fortran libraries [SEC=UNCLASSIFIED]
Brought to you by:
theller
From: José Gómez-D. <j.g...@ge...> - 2010-11-26 10:43:19
|
Hi, On Thu, Nov 25, 2010 at 11:12 PM, Andrew MacIntyre < And...@ac...> wrote: > Those routines are likely to be in a fortran runtime library. You > probably need to use the RTLD_GLOBAL flag when loading your fortran SO to > have the symbols resolved. > Mmmm, tried that but doesn't seem to help: ctypes.CDLL("./libmylib_x86_64.so", mode=ctypes.RTLD_GLOBAL) [ ... ] OSError: ./libmylib_x86_64.so: undefined symbol: _gfortran_internal_malloc64 -- RSU ■ Dept. of Geography ■ University College ■ Gower St, London WC1E 6BT UK EMM ■ Dept. of Geography ■ King's College ■ Strand, London WC2R 2LS UK |