enthought / enthought/pyql

PyQL building issues

Open
#86 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Cython
Stars
1.3k
Forks
235
PR merge metrics
No merged PRs in 30d

Description

Hi, I followed all the steps in the documents, and I also checked previous issues some other guys may have had, but still I can't build the library correctly, here's the messages I got from building.

setting.hpp is patched, quantlib is built, def generated, then quantlib built again.
Then I add folders containing .lib, .dll and folders containing .obj to the PATH
I also modified setup.py so that all directories can be correctly found, then I built
with MSVC. Still got the errors below...

Could you tell me are there any steps I went wrong? Thanks~

---

C:\Users...\Documents\GitHub\pyql>cmd.exe
Microsoft Windows [Version 6.3.9600](c) 2013 Microsoft Corporation. All rights reserved.

C:\Users...\Documents\GitHub\pyql>python setup.py build --compiler=msvc
C:\Users...\Documents\GitHub\pyql
setup.py
C:\Python27\lib\distutils\extension.py:133: UserWarning: Unknown Extension optio
ns: 'cython_directives'
warnings.warn(msg)
missing cimport in module 'quantlib.time': quantlib\instruments\credit_default_s
wap.pyx
missing cimport in module 'quantlib.pricingengines': quantlib\instruments\credit
_default_swap.pyx
missing cimport in module 'quantlib.pricingengines': quantlib\instruments\option
.pyx
running build
running build_py
running build_ext
building 'quantlib.cashflow' extension
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.exe /c /nolo
go /Ox /MD /W3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX
-DWINNT -D_WINDLL -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_SCL_S
ECURE_NO_WARNINGS -IE:\Projects\QuantLib-1.5 -ID:\Modules\boost -I. -I./cpp_l
ayer -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -I
C:\Python27\PC /Tpquantlib\cashflow.cpp /Fobuild\temp.win-amd64-2.7\Release\quan
tlib\cashflow.obj /GR /FD /Zm250 /EHsc
cashflow.cpp
c:\python27\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll lin
kage
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51
6) : see previous definition of 'round'
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xtgmath.h(206) :
warning C4273: 'round' : inconsistent dll linkage
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51
6) : see previous definition of 'round'
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.exe /DLL /
nologo /INCREMENTAL:NO /LIBPATH:E:\Projects\QuantLib-1.5\build\vc120\Win32\Re
lease /LIBPATH:E:\Projects\QuantLib-1.5\lib /LIBPATH:. /LIBPATH:C:\Python27\l
ibs /LIBPATH:C:\Python27\PCbuild\amd64 QuantLib.lib /EXPORT:initcashflow build\t
emp.win-amd64-2.7\Release\quantlib\cashflow.obj /OUT:build\lib.win-amd64-2.7\qua
ntlib\cashflow.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\quantlib\cashflow.li
b /MANIFESTFILE:build\temp.win-amd64-2.7\Release\quantlib\cashflow.pyd.manifest
/subsystem:windows
cashflow.obj : warning LNK4197: export 'initcashflow' specified multiple times;
using first specification
Creating library build\temp.win-amd64-2.7\Release\quantlib\cashflow.lib and o
bject build\temp.win-amd64-2.7\Release\quantlib\cashflow.exp
cashflow.obj : error LNK2019: unresolved external symbol "public: **cdecl QuantL
ib::Date::Date(void)" (??0Date@QuantLib@@QEAA@XZ) referenced in function "struct
_object \* __cdecl __pyx_pf_8quantlib_8cashflow_8CashFlow_4date___get**(struct _
_pyx_obj_8quantlib_8cashflow_CashFlow *)" (?__pyx_pf_8quantlib_8cashflow_8CashFl
ow_4date___get__@@YAPEAU_object@@PEAU__pyx_obj_8quantlib_8cashflow_CashFlow@@@Z)

cashflow.obj : error LNK2019: unresolved external symbol "public: **cdecl QuantL
ib::SimpleCashFlow::SimpleCashFlow(double,class QuantLib::Date const &)" (??0Sim
pleCashFlow@QuantLib@@QEAA@NAEBVDate@1@@Z) referenced in function "int __cdecl _
_pyx_pf_8quantlib_8cashflow_14SimpleCashFlow___init**(struct **pyx_obj_8quantlib
_8cashflow_SimpleCashFlow *,double,struct __pyx_obj_8quantlib_4time_4date_Date *
)" (?__pyx_pf_8quantlib_8cashflow_14SimpleCashFlow___init**@@YAHPEAU__pyx_obj_8q
uantlib_8cashflow_SimpleCashFlow@@NPEAU__pyx_obj_8quantlib_4time_4date_Date@@@Z)

build\lib.win-amd64-2.7\quantlib\cashflow.pyd : fatal error LNK1120: 2 unresolve
d externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\
amd64\link.exe' failed with exit status 1120

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.