Hi David,
On 05/13/2016 03:32 AM, David Brough wrote:
Hi Robert,
I tried completely removing the build/ directory, but it still didn't compile.
Thanks,
using first specification Creating library build\temp.win-amd64-2.7\Release\sfepy\discrete\common\extmo ds\_fmfield.lib and object build\temp.win-amd64-2.7\Release\sfepy\discrete\commo n\extmods\_fmfield.exp _fmfield.obj : error LNK2019: unresolved external symbol __imp_free referenced i n function __pyx_pf_5numpy_7ndarray_2__releasebuffer__ _fmfield.obj : error LNK2019: unresolved external symbol __imp_malloc referenced in function __pyx_pf_5numpy_7ndarray___getbuffer__ LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup sfepy_common.lib(fmfield.obj) : error LNK2019: unresolved external symbol
this is weird. The compilation succeeds but linking fails, and those symbols are from numpy. Googling the error seems to suggest [1], that possibly numpy was compiled with another compiler than that used for sfepy extension modules, but I do not know how to help with the debugging.
BTW. what command line shell do you use for the build. The anaconda prompt, git bash prompt, or? Maybe there are some problems with paths.
r.
PS: a colleague of mine had also a similar problem on W10, so I came another day to his computer, tried the command myself and it worked. There are mysteries in MS world :)
[1] https://github.com/scikit-learn/scikit-learn/issues/3566