[Numpy-discussion] Build error on Windows

Chris Barker Chris.Barker at noaa.gov
Thu Jul 14 21:56:33 EDT 2011


Hi folks,

I'm trying to build numpy HEAD on Windows in preparation for the SciPy 
sprints tomorrow. I've never built numpy on Windows, and I'm new to git, 
so I could be doing any number of things wrong.

I think I have the latest code:

C:\Documents and Settings\Chris\My Documents\SciPy\numpy_git\numpy>git 
log -1
commit 6fdfd9c070ce943415d75780702a22f4bbd8f837
Author: Ben Walsh <b at wumpster.com>
Date:   Tue Jul 12 14:52:01 2011 +0100

I tried to build it with a simple:

python setup.py build_ext --inplace

and got:

C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL 
/nologo /INCRE
MENTAL:NO /LIBPATH:c:\python27\libs /LIBPATH:c:\python27\PCbuild 
/LIBPATH:build\
temp.win32-2.7 /EXPORT:init_dummy 
build\temp.win32-2.7\Release\numpy\core\src\du
mmymodule.obj /OUT:numpy\core\_dummy.pyd 
/IMPLIB:build\temp.win32-2.7\Release\nu
mpy\core\src\_dummy.lib 
/MANIFESTFILE:build\temp.win32-2.7\Release\numpy\core\sr
c\_dummy.pyd.manifest
LINK : error LNK2001: unresolved external symbol init_dummy
build\temp.win32-2.7\Release\numpy\core\src\_dummy.lib : fatal error 
LNK1120: 1
unresolved externals
error: Command "C:\Program Files\Microsoft Visual Studio 
9.0\VC\BIN\link.exe /DL
L /nologo /INCREMENTAL:NO /LIBPATH:c:\python27\libs 
/LIBPATH:c:\python27\PCbuild
  /LIBPATH:build\temp.win32-2.7 /EXPORT:init_dummy 
build\temp.win32-2.7\Release\n
umpy\core\src\dummymodule.obj /OUT:numpy\core\_dummy.pyd 
/IMPLIB:build\temp.win3
2-2.7\Release\numpy\core\src\_dummy.lib 
/MANIFESTFILE:build\temp.win32-2.7\Relea
se\numpy\core\src\_dummy.pyd.manifest" failed with exit status 1120

Python 2.7.2, python.org build (32 bit)
Visual Studio express 2008

That should work, yes?

Thanks for any hints.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list