0

これは私の関数宣言です。Visual Studio 2010 C++ を使用すると、未解決の外部エラーが発生します。

    bool CheckCrcByte(const CHAR_t* pbData, UINT32_t lLength, UINT32_t lMsgCrc) 
   { 
       bool FlagPass;
       UINT32_t lCalcCrc;
       UINT32_t lInitCrc = 0;
       lCalcCrc = ~lInitCrc; 
       CHAR_t* bCurrent = (CHAR_t*) pbData;
       while (lLength-- > 0) 
       {
         lCalcCrc = (lCalcCrc >> 8) ^ crc_TABEL[(lCalcCrc & 0xFF) ^ *bCurrent++];
       } 
       lCalcCrc = ~lCalcCrc;
       if (lMsgCrc == lCalcCrc)
       {
          FlagPass = true;
       } 
       else
       { 
          FlagPass = false;
       }
       return FlagPass; 
     } 
4

1 に答える 1