[Numpy-discussion] Moving to gcc 4.* for win32 installers ?
Sturla Molden
sturla@molden...
Tue Feb 7 11:22:08 CST 2012
On 07.02.2012 17:14, David Cournapeau wrote:
> How did you link a library with mixed C and gfortran ?
Use gfortran instead of gcc when you link. gfortran knows what to do
(and don't put -lgfortran in there). Something like this I think:
gfortran -o whatever.pyd -shared cobj.o fobj.o -lmsvcr90 -lpython27
(Or just do whatever f2py does on Windows, it's mixed C and Fortran as
well, and works with gfortran.)
Sturla
More information about the NumPy-Discussion
mailing list