1>正在生成代码...
1>正在链接...
1>Asian.obj : warning LNK4075: 忽略“/EDITANDCONTINUE”(由于“/INCREMENTAL:NO”规范)
1> 正在创建库 .\Debug/EquityDerivatives.lib 和对象 .\Debug/EquityDerivatives.exp
1>impEuropeanVasicek.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z)
1>PDE2D-Convertible.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z)
1>PDE2DImpConvertible.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z)
1>PDE2DImpHybridSwaption.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z)
1>Underlying.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z),该符号在函数 "public: __thiscall cUnderlying::cUnderlying(class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > &,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > &,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > &,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > &,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > &,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > &,double,long,long)" (
??0cUnderlying@@QAE@AAV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@00000NJJ@Z) 中被引用
1>VolConversion.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z)
1>impAmericanVasicek.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z)
1>impBermudanVasicek.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cYieldCurve::cYieldCurve(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,enum cYieldCurve::YCType)" (
??0cYieldCurve@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@W4YCType@0@@Z)
1>PDE2DImpConvertible.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall cVasicek::cVasicek(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,class cYieldCurve *)" (
??0cVasicek@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@PAVcYieldCurve@@@Z),该符号在函数
__catch$?PDE2DImpConvertible@@YAXAAV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@00000000NJJJ0JAAV?$vector@JV?$allocator@J@std@@@2@NN0W4EAccrualBasis@@JJJNJ000JJJJAAV?$vector@NV?$allocator@N@std@@@2@_N@Z$0 中被引用
1>PDE2DImpHybridSwaption.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cVasicek::cVasicek(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,class cYieldCurve *)" (
??0cVasicek@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@PAVcYieldCurve@@@Z)
1>VolConversion.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cVasicek::cVasicek(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,class cYieldCurve *)" (
??0cVasicek@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@PAVcYieldCurve@@@Z)
1>impAmericanVasicek.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cVasicek::cVasicek(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,class cYieldCurve *)" (
??0cVasicek@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@PAVcYieldCurve@@@Z)
1>impBermudanVasicek.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cVasicek::cVasicek(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,class cYieldCurve *)" (
??0cVasicek@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@PAVcYieldCurve@@@Z)
1>impEuropeanVasicek.obj : error LNK2001: 无法解析的外部符号 "public: __thiscall cVasicek::cVasicek(long,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > const &,class cYieldCurve *)" (
??0cVasicek@@QAE@JABV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@PAVcYieldCurve@@@Z)
1>PDE2DBondEq.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall cVasicek::calculateGH(double,double,double &,double &)" (
?calculateGH@cVasicek@@QAEXNNAAN0@Z),该符号在函数 "public: virtual void __thiscall cPDE2DBondEq::calcCoefficients(int,class cPDE2DGrid *,class std::vector<class std::vector<double,class std::allocator<double> >,class std::allocator<class std::vector<double,class std::allocator<double> > > > &)" (
?calcCoefficients@cPDE2DBondEq@@UAEXHPAVcPDE2DGrid@@AAV?$vector@V?$vector@NV?$allocator@N@std@@@std@@V?$allocator@V?$vector@NV?$allocator@N@std@@@std@@@2@@std@@@Z) 中被引用
。。。。。
(好几个这样的错误!)
1>Debug/EquityDerivatives.xll : fatal error LNK1120: 9 个无法解析的外部命令
1>正在创建浏览信息文件...
1>Microsoft ?????????? Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>生成日志保存在“file://d:\Library2005\EQD2005\Models\EquityDerivatives\Debug\BuildLog.htm”
1>EquityDerivatives - 27 个错误,178 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
看样子你的工程里面少了一个类。
或者没加入类的cpp文件。
cpp文件必须加入到工程里
如果是库,则lib文件也需要加入到工程里