lnk2019不受欢迎的外部符号

时间:2015-03-24 19:59:10

标签: c++ function

错误9错误LNK1120:1个未解析的外部D:\ AUL_C ++ \ AUL_2_C ++ _ Version_02132015 \ AUL \ Debug \ AUL.exe                 1 1 AUL

错误8错误LNK2019:未解析的外部符号 " public:double __thiscall AULIV :: ART_AV_RollForward(class AULIV *,class assets *,int&,int&,double&)" (?ART_AV_RollForward @ AULIV @@ QAENPAV1 @ PAVassets @@ AAH2AAN @ Z)在函数" void __cdecl AUL_ReserveSetup(类AULIV *,类资产*,int,int,int,int)"中引用。 (?AUL_ReserveSetup @@ YAXPAVAULIV @@ PAVassets @@ HHHH @ Z)D:\ AUL_C ++ \ AUL_2_C ++ _ Version_02132015 \ AUL \ AUL \ Main.obj AUL

   //AUL Projection
   void AUL_ReserveSetup(AULIV* AUL_proj, assets* asset_proj, int &AUL_start_num, int &AUL_size_num, int &AUL_end_num, int &maxProjMth);

   //ART Calc
   double ART_AV_RollForward(AULIV* AUL_proj, assets* asset_proj, int &PolNum, int &t, double &PremPaid);

   void ART_SolveIni_Var(const int &TIME);
   void ART_SolveDel_Var();

   double* ART_accumNLG_Target;
   double* ART_accumNLG_Excess;
   double* ART_accumPremPaid;

   //AUL Projection
   void AUL_Projection(AULIV* AUL_proj, assets* asset_proj, int scen_start, int scen_end, int AUL_start, int AUL_size, int AUL_end, int maxProjMth);               

   double calcDB_Amt(AULIV* AUL_proj, const int &polNum, const double &AV_COI);

来自void AUL_ReserveSetup ///////////////////// #&39;'''''''''''&# 39;''''''''

   AUL_proj->ART_SolveIni_Var(PolYrMax);

          for (PolYear=0; PolYear <= PolYrMax; PolYear++)
          {
                 AttAge = AUL_proj->ALL_issue_age[polNumber] + PolYear - 1;

                     double    p0, p1, f0, f1, pDel, der;
                       int       i, ret;

                       p0  = max(10, AUL_proj->ALL_NLG_Target_prem[polNumber]);
                       f0  = AUL_proj->ART_AV_RollForward(AUL_proj, asset_proj, polNumber, PolYear, p0);

                       if (f0 < 0)
                              {
                              pDel       = 1;
                              }
                       else
                              {
                               pDel       = -1;
                              }

1 个答案:

答案 0 :(得分:0)

您已声明ART_AV_RollForward函数,但未定义它。自您声明后,ART_AV_RollForward被添加到符号表中,但由于您没有提供它的定义,因此永远无法解析它。