[Numpy-discussion] f2py on Windows, compiler options

Mathew Yeates mat.yeates at gmail.com
Thu May 19 21:25:54 EDT 2011


Solved. Sort of. When I compiled by hand and switched /MD to /MT it
worked. It would still be nice if I could control the compiler options
f2py passes to cl.exe

-Mathew

On Thu, May 19, 2011 at 3:05 PM, Mathew Yeates <mat.yeates at gmail.com> wrote:
> Hi
> I am trying to run f2py and link to some libraries.
> I get a link error
> LINK : fatal error LNK1104: cannot open file 'LIBC.lib' because (I
> think) the libraries are compiled with /MT (multithreaded).
>
> I tried adding /NODFEAU:TLIB:libc.lib
>
> but then I have unresolved dependencies. I want to try compiling the
> code with /MT. How can tell f2py to use this option when compiling
> (not linking, this option is passed to cl).
>
> -Mathew
>



More information about the NumPy-Discussion mailing list