[Numpy-discussion] npy_log2 undefined on Linux

Matthew Brett matthew.brett at gmail.com
Sun Oct 26 04:54:01 EDT 2014


Hi,

On Sat, Oct 25, 2014 at 11:26 PM, David Cournapeau <cournape at gmail.com> wrote:
> Not exactly: if you build numpy with mingw (as is the official binary), you
> need to build everything that uses numpy C API with it.

Some of the interwebs appear to believe that the mingw .a file is
compatible with visual studio:
http://stackoverflow.com/questions/2096519/from-mingw-static-library-a-to-visual-studio-static-library-lib

I can get the program to compile by copying libnpymath.a as
npymath.lib, followed by many linker errors like:

npymath.lib(npy_math.o) : error LNK2019: unresolved external symbol
_cosf referenced in function _npy_cosf

Perhaps, as the Onion once said "error found on internet"...

See you,

Matthew



Matthew



More information about the NumPy-Discussion mailing list