Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F2PY fails to wrap subroutine with call-back function on Windows for Python 64 bits with MinGW-W64 #15934

Open
ragonneau opened this issue Apr 8, 2020 · 5 comments

Comments

@ragonneau
Copy link

ragonneau commented Apr 8, 2020

Reproducing code example:

The first example of the official documentation does not work on Windows for any version of Python 64 bits with MinGW-W64 (bin of MinGW-W64 added to PATH, compiler precised by --compiler=mingw32). Thank you!!

Error message:

running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "callback" sources
f2py options: []
f2py:> C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.c
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7
Reading fortran codes...
Reading file 'callback.f' (format:fix,strict)
Post-processing...
Block: callback
Block: foo
Block: fun
appenddecl: "intent" not implemented.
Post-processing (stage 2)...
Building modules...
Constructing call-back function "cb_fun_in_foo__user__routines"
def fun(i): return r
Building module "callback"...
Constructing wrapper function "foo"...
r = foo(fun,[fun_extra_args])
Wrote C/API module "callback" to file "C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.c"
adding 'C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c' to sources.
adding 'C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7' to include_dirs.
copying C:\Python37\lib\site-packages\numpy\f2py\src\fortranobject.c -> C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7
copying C:\Python37\lib\site-packages\numpy\f2py\src\fortranobject.h -> C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7
build_src: building npy-pkg config files
running build_ext
Cannot build msvcr library: "vcruntime140d.dll" not found
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\MinGW\bin\gfortran.exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'callback' extension
compiling C sources
C compiler: gcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b
creating C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7
compile options: '-DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7 -IC:\Python37\lib\site-packages\numpy\core\include -IC:\Python37\include -IC:\Python37\include -c'
gcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7 -IC:\Python37\lib\site-packages\numpy\core\include -IC:\Python37\include -IC:\Python37\include -c C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c -o C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o
gcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1900 -IC:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7 -IC:\Python37\lib\site-packages\numpy\core\include -IC:\Python37\include -IC:\Python37\include -c C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.c -o C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o
In file included from C:\Python37\include/Python.h:87:0,
from C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.h:7,
from C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:2:
C:\Python37\include/pytime.h:123:59: warning: 'struct timeval' declared inside parameter list will not be visible outside ofIn file  thiins defincluded from C:\Python37\include/Python.h:87:0,
ition or declaration
PyAP
from C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.c:14:
C:\Python37\include/pytime.h:123:59: warning: 'struct timI_FUNC(int) _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv);
eval' declared inside parameter list will not be visi
^~~~~~~
ble outside of this definition or declaration
PyAPI_FUNC(int) _PyTime_FromTimeval(_PyTCime_t *tp, struct timeval *tv);
:\Python37\include/pyti me.h:130:12: warning: '
struct timeval' declared inside parameter list will not be visible outsi     d
e of
this definition or declaration
struct time
^~~~~~~
val *tv,
C:\Python37\include/pytime.h:130:12: warning: 'struct timeval' declared inside parameter list will not be visible outsid   is
definition or declaration
struct timeval *tv,
^
~~~~~~
^C:\Python37\include/pytime.h:135:12: warni~~~~~~
ng: 'struct timevC:\Python37\include/pytime.h:135:12: warning: 'struct timeval' dal' eclared inside parameter list will not be visible outside of this definition or declaration
struct timedeclaredval *tv,
inside parameter list will not be visible outside of this definition or declaration
struct timeval *tv,
^~~~~~~
^~~~~~~
In file included from C:\Python37\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1832:0,
from C:\PythonIn fil37\lib\sitee included from C:\Python37\-packages\numpy\clore\include/numpy/ndarrayobject.h:12,
from C:\ib\siPython37\lib\site-packages\numpy\core\includte-packages\numpy\core\include/numpy/arrayobe/numpy/ndarrject.h:4,
aytypes.h from C:\Users\trago\AppData\Local\Tem:1832:0,
p\tmpyv  from C:\Python37\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,
from C:\Python37\lib\site-packages\numpy\core\include/lj2t2b\srcnumpy/arra.wiyobject.h:4,
from C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.h:13,
from C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:2:
C:\Python37\lib\site-packages\numpy\core\includn-amd64-3.7\fortranobject.h:13,
from C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.c:15:
C:\Python37\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:14:9: note: #pragma message: C:\Python37\lib\site-packages\numpy\core\incle/ude/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \
^~~~~~~
numpy/npy_1_7_deprecated_api.h:14:9: note: #pragma message: C:\Python37\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \
^~~~~~~
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c: In function 'format_def':
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:133:32: warning: unknown conversion type character 'l' in format [-Wformat=]
n = PyOS_snprintf(p, size, "array(%" NPY_INTP_FMT, def.dims.d[0]);
^~~~~~~~~
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:133:32: warning: too many arguments for format [-Wformat-extra-args]
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:141:36: warning: unknown conversion type character 'l' in format [-Wformat=]
n = PyOS_snprintf(p, size, ",%" NPY_INTP_FMT, def.dims.d[i]);
^~~~
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:141:36: warning: too many arguments for format [-Wformat-extra-args]
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c: In function 'fortran_doc':
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:255:60: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "fortranobject.c: fortran_doc: len(p)=%zd>%zd=size:"
^
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:255:64: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "fortranobject.c: fortran_doc: len(p)=%zd>%zd=size:"
^
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:255:21: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "fortranobject.c: fortran_doc: len(p)=%zd>%zd=size:"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c: In function 'array_from_pyobj':
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:707:43: warning: unknown conversion type character 'l' in format [-Wformat=]
sprintf(mess+strlen(mess),"%" NPY_INTP_FMT ",",dims[i]);
^~~
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:707:43: warning: too many arguments for format [-Wformat-extra-args]
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:755:25: warning: unknown conversion type character 'l' in format [-Wformat=]
" -- expected at least elsize=%d but got %" NPY_INTP_FMT,
^
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:755:25: warning: too many arguments for format [-Wformat-extra-args]
" -- expected at least elsize=%d but got %" NPY_INTP_FMT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:797:25: warning: unknown conversion type character 'l' in format [-Wformat=]
" -- expected elsize=%d but got %" NPY_INTP_FMT,
^
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.c:797:25: warning: too many arguments for format [-Wformat-extra-args]
" -- expected elsize=%d but got %" NPY_INTP_FMT,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compiling Fortran sources
Fortran f77 compiler: C:\MinGW\bin\gfortran.exe -Wall -g -ffixed-form -fno-second-underscore -O3 -funroll-loops
Fortran f90 compiler: C:\MinGW\bin\gfortran.exe -Wall -g -fno-second-underscore -O3 -funroll-loops
Fortran fix compiler: C:\MinGW\bin\gfortran.exe -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -O3 -funroll-loops
compile options: '-IC:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\src.win-amd64-3.7 -IC:\Python37\lib\site-packages\numpy\core\include -IC:\Python37\include -IC:\Python37\include -c'
gfortran.exe:f77: callback.f
C:\MinGW\bin\gfortran.exe -Wall -g -Wall -g -shared C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\callback.o -Lc:\mingw\lib\gcc\mingw32\6.3.0 -LC:\Python37\libs -LC:\Python37\PCbuild\amd64 -lpython37 -lgfortran -o .\callback.cp37-win_amd64.pyd
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o: In function `import_array':
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1466: undefined reference to `_imp__PyImport_ImportModule'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1472: undefined reference to `_imp__PyObject_GetAttrString'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1475: undefined reference to `_imp__PyExc_AttributeError'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1475: undefined reference to `_imp__PyErr_SetString'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1480: undefined reference to `_imp__PyCapsule_Type'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1481: undefined reference to `_imp__PyExc_RuntimeError'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1481: undefined reference to `_imp__PyErr_SetString'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1485: undefined reference to `_imp__PyCapsule_GetPointer'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1496: undefined reference to `_imp__PyExc_RuntimeError'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1496: undefined reference to `_imp__PyErr_SetString'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1502: undefined reference to `_imp__PyExc_RuntimeError'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1502: undefined reference to `_imp__PyErr_Format'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1508: undefined reference to `_imp__PyExc_RuntimeError'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1508: undefined reference to `_imp__PyErr_Format'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1520: undefined reference to `_imp__PyExc_RuntimeError'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1520: undefined reference to `_imp__PyErr_Format'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1531: undefined reference to `_imp__PyExc_RuntimeError'
C:/Python37/lib/site-packages/numpy/core/include/numpy/__multiarray_api.h:1531: undefined reference to `_imp__PyErr_Format'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o: In function `double_from_pyobj':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:109: undefined reference to `_imp__PyFloat_Type'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:109: undefined reference to `_imp__PyFloat_Type'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:109: undefined reference to `_imp__PyType_IsSubtype'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:117: undefined reference to `_imp__PyNumber_Float'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:127: undefined reference to `_imp__PyComplex_Type'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:127: undefined reference to `_imp__PyComplex_Type'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:127: undefined reference to `_imp__PyType_IsSubtype'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:128: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:131: undefined reference to `_imp__PySequence_Check'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:132: undefined reference to `_imp__PySequence_GetItem'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:134: undefined reference to `_imp__PyErr_Clear'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:139: undefined reference to `_imp__PyErr_Occurred'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:141: undefined reference to `_imp__PyErr_SetString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o: In function `create_cb_arglist':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:153: undefined reference to `_imp__PyFunction_Type'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:159: undefined reference to `_imp__PyObject_HasAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:160: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:162: undefined reference to `_imp__PyObject_HasAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:163: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:164: undefined reference to `_imp__PyObject_HasAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:165: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:171: undefined reference to `_imp__PyTuple_Size'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:178: undefined reference to `_imp__PyTuple_Size'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:185: undefined reference to `_imp__PyTuple_Size'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:199: undefined reference to `_imp__PyObject_HasAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:200: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:200: undefined reference to `_imp__PyObject_HasAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:205: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:210: undefined reference to `_imp__PyLong_AsLong'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:216: undefined reference to `_imp__PyObject_HasAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:217: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:222: undefined reference to `_imp__PyTuple_Size'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:227: undefined reference to `_imp__PyTuple_Size'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:239: undefined reference to `_imp__PyTuple_New'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:241: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:241: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:242: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:246: undefined reference to `_imp__PyTuple_GetItem'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:254: undefined reference to `_imp__PyErr_Occurred'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:255: undefined reference to `_imp__PyErr_SetString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o: In function `cb_fun_in_foo__user__routines':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:299: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:302: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:313: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:315: undefined reference to `_imp__PySequence_Tuple'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:317: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:321: undefined reference to `_imp__PyErr_Clear'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:322: undefined reference to `_imp__Py_BuildValue'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:326: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:339: undefined reference to `_imp__PyLong_FromLong'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:339: undefined reference to `_imp__PyTuple_SetItem'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:356: undefined reference to `_imp__PyObject_CallObject'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:366: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:368: undefined reference to `_imp__Py_BuildValue'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:371: undefined reference to `_imp__Py_BuildValue'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:373: undefined reference to `_imp__PyTuple_Size'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:377: undefined reference to `_imp__PyTuple_GetItem'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o: In function `f2py_rout_callback_foo':     C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:423: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:435: undefined reference to `_imp__PyTuple_Type'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:435: undefined reference to `_imp__PyArg_ParseTupleAndKeywords'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:465: undefined reference to `_imp__PyErr_Occurred'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:475: undefined reference to `_imp__Py_BuildValue'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o: In function `PyInit_callback':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:552: undefined reference to `_imp__PyModule_Create2'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:556: undefined reference to `_imp__PyType_Type'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:557: undefined reference to `_imp__PyErr_Print'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:557: undefined reference to `_imp__PyExc_ImportError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:557: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:558: undefined reference to `_imp__PyErr_Occurred'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:559: undefined reference to `_imp__PyExc_ImportError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:559: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:560: undefined reference to `_imp__PyModule_GetDict'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:561: undefined reference to `_imp__PyBytes_FromString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:562: undefined reference to `_imp__PyDict_SetItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:565: undefined reference to `_imp__PyUnicode_FromString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:572: undefined reference to `_imp__PyDict_SetItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:574: undefined reference to `_imp__PyErr_NewException'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:579: undefined reference to `_imp__PyDict_SetItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/callbackmodule.c:583: undefined reference to `_imp__PyDict_SetItemString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `F2PyDict_SetItemString':      C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:24: undefined reference to `_imp__PyErr_Occurred'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:25: undefined reference to `_imp__PyErr_Print'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:26: undefined reference to `_imp__PyErr_Clear'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:30: undefined reference to `_imp__PyDict_SetItemString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `PyFortranObject_New':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:45: undefined reference to `_imp___PyObject_New'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:49: undefined reference to `_imp__PyDict_New'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:67: undefined reference to `_imp__PyDict_SetItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:85: undefined reference to `_imp__PyDict_SetItemString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `PyFortranObject_NewAsAttr':   C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:98: undefined reference to `_imp___PyObject_New'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:100: undefined reference to `_imp__PyDict_New'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:101: undefined reference to `_imp__PyObject_Free'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `fortran_dealloc':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:114: undefined reference to `_imp__PyObject_Free'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `format_def':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:133: undefined reference to `_imp__PyOS_snprintf'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:141: undefined reference to `_imp__PyOS_snprintf'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `fortran_doc':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:178: undefined reference to `_imp__PyMem_Malloc'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:180: undefined reference to `_imp__PyErr_NoMemory'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:194: undefined reference to `_imp__PyOS_snprintf'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:204: undefined reference to `_imp__PyOS_snprintf'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:246: undefined reference to `_imp__PyUnicode_FromStringAndSize'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:251: undefined reference to `_imp__PyMem_Free'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:258: undefined reference to `_imp__PyMem_Free'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `fortran_getattr':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:275: undefined reference to `_imp__PyDict_GetItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:301: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:301: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:301: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:310: undefined reference to `_imp__PyUnicode_FromString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:313: undefined reference to `_imp__PyUnicode_Concat'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:323: undefined reference to `_imp__PyDict_SetItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:329: undefined reference to `_imp__PyDict_SetItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:336: undefined reference to `_imp__PyUnicode_FromString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:337: undefined reference to `_imp__PyObject_GenericGetAttr'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `fortran_setattr':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:353: undefined reference to `_imp__PyExc_AttributeError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:353: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:360: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:395: undefined reference to `_imp__PyDict_New'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:400: undefined reference to `_imp__PyDict_DelItemString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:402: undefined reference to `_imp__PyExc_AttributeError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:402: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:406: undefined reference to `_imp__PyDict_SetItemString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `fortran_call':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:417: undefined reference to `_imp__PyExc_RuntimeError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:417: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:427: undefined reference to `_imp__PyExc_TypeError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:427: undefined reference to `_imp__PyErr_Format'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `fortran_repr':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:435: undefined reference to `_imp__PyObject_GetAttrString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:436: undefined reference to `_imp__PyErr_Clear'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:439: undefined reference to `_imp__PyUnicode_FromFormat'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:442: undefined reference to `_imp__PyUnicode_FromString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `array_from_pyobj':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:698: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:699: undefined reference to `_imp___Py_NoneStruct'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:709: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:709: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:736: undefined reference to `_imp__PyType_IsSubtype'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:759: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:759: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:806: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:806: undefined reference to `_imp__PyErr_SetString'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:842: undefined reference to `_imp__PyExc_TypeError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:842: undefined reference to `_imp__PyErr_SetString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `check_and_fix_dimensions':    C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:906: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:906: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:920: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:920: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:934: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:934: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:949: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:949: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:960: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:960: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:975: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:975: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:988: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:988: undefined reference to `_imp__PyErr_Format'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:1029: undefined reference to `_imp__PyExc_ValueError'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:1029: undefined reference to `_imp__PyErr_SetString'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `F2PyCapsule_FromVoidPtr':     C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:1060: undefined reference to `_imp__PyCapsule_New'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:1062: undefined reference to `_imp__PyErr_Clear'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `F2PyCapsule_AsVoidPtr':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:1070: undefined reference to `_imp__PyCapsule_GetPointer'
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:1072: undefined reference to `_imp__PyErr_Clear'
C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o: In function `F2PyCapsule_Check':
C:/Users/trago/AppData/Local/Temp/tmpyvlj2t2b/src.win-amd64-3.7/fortranobject.c:1080: undefined reference to `_imp__PyCapsule_Type'
collect2.exe: error: ld returned 1 exit status
error: Command "C:\MinGW\bin\gfortran.exe -Wall -g -Wall -g -shared C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\callbackmodule.o C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\users\trago\appdata\local\temp\tmpyvlj2t2b\src.win-amd64-3.7\fortranobject.o C:\Users\trago\AppData\Local\Temp\tmpyvlj2t2b\Release\callback.o -Lc:\mingw\lib\gcc\mingw32\6.3.0 -LC:\Python37\libs -LC:\Python37\PCbuild\amd64 -lpython37 -lgfortran -o .\callback.cp37-win_amd64.pyd" failed with exit status 1```
### Numpy/Python version information:

<!-- Output from 'import sys, numpy; print(numpy.__version__, sys.version)' -->
1.18.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]

@eric-wieser
Copy link
Member

Your error message seems to be missing all of its newlines. Could you paste it again?

@mattip
Copy link
Member

mattip commented Apr 8, 2020

turned many spaces into newlines. It seems the python.lib is not linked

@ragonneau
Copy link
Author

turned many spaces into newlines. It seems the python.lib is not linked

Thank you for the modification! While trying with 32 bits version of Python and MinGW, it however works. The error occurs only when trying with 64 bits versions.

@ragonneau
Copy link
Author

turned many spaces into newlines. It seems the python.lib is not linked

Is it an error I can handle in the code? Thank you!

@rossbar
Copy link
Contributor

rossbar commented Jul 12, 2020

Possibly related to #16416 or #16031, both of which also report f2py issues on with windows/mingw

@pearu pearu added this to To do in f2py core Feb 19, 2021
@pearu pearu removed this from To do in f2py core Feb 19, 2021
@pearu pearu added this to To do in f2py usage via automation Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants