文件:
D:\Program Files (x86)\Microsoft Visual Studio 9.0
D:\Program Files (x86)\Microsoft Visual Studio 9.0\boost_1_50_0
D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-1.2
D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-SWIG-1.2
D:\Program Files (x86)\Microsoft Visual Studio 9.0\swigwin-2.0.7
D:\Python27
虽然我严格遵循http://quantcodetips.blogspot.com/2012_02_01_archive.html中描述的方法,但在 Visual Studio 2008 命令提示符中设置后
set INCLUDE=D:\Program Files (x86)\Microsoft Visual Studio 9.0\boost_1_50_0
set QL_DIR=D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-1.2
set LIB=D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-1.2\ql\Release\;
D:\Program Files (x86)\Microsoft Visual Studio 9.0\boost_1_50_0\stage\lib\
并将名称 QuantLib-boost1.50-msvc9.obj (D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-1.2\ql\Release) 更改为 QuantLib-vc90-mt.obj;
然后转到 QuantLib-SWIG-1.2,使用
python setup.py build --compiler=msvc
出现链接错误。
D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-1.2\ql/time/calendar
s/argentina.hpp : warning C4819: The file contains a character that cannot be re
presented in the current code page (936). Save the file in Unicode format to pre
vent data loss
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:D:\Python27\libs /LIBPATH:D:\Python27\PCbuild "/LIBPATH
:D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-1.2\lib" "/LIBPATH:
D:\Program Files (x86)\Microsoft Visual Studio 9.0\QuantLib-1.2\ql\Release\" "/L
IBPATH:D:\Program Files (x86)\Microsoft Visual Studio 9.0\boost_1_50_0\stage\lib
\" /EXPORT:init_QuantLib build\temp.win32-2.7\Release\QuantLib/quantlib_wrap.obj
/OUT:build\lib.win32-2.7\QuantLib\_QuantLib.pyd /IMPLIB:build\temp.win32-2.7\Re
lease\QuantLib\_QuantLib.lib /MANIFESTFILE:build\temp.win32-2.7\Release\QuantLib
\_QuantLib.pyd.manifest /subsystem:windows /machine:I386
LINK : fatal error LNK1181: cannot open input file 'Files.obj'
error: command '"D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.
exe"' failed with exit status 1181
寻求帮助。