Following code in a test project does not compile:[TestMethod]void test_lis(){ vector<int> vSeq; int seq[] = {7, 8, 2, 3, 4}; // 2, 3, 4 vSeq = vector<int>(seq, seq + sizeof(seq)/sizeof(int)); Assert::AreEqual(3, CAlgorithms::lis(vSeq), "LIS Length");}Error 1 error LNK2028: unresolved token (0A00010D) "extern "C" int __cdecl _CrtDbgReportW(int,wchar_t const *,int,wchar_t const *,wchar_t const *,...)" (?_CrtDbgReportW@@$$J0YAHHPB_WH00ZZ) referenced in function "public: int const & __thiscall std::_Vector_const_iterator<class std::_Vector_val<int,class std::allocator<int> > >::operator*(void)const " (??D?$_Vector_const_iterator@V?$_Vector_val@HV?$allocator@H@std@@@std@@@std@@$$FQBEABHXZ) D:\P\Exercises\TestAlgorithms\TestAlgorithms.objError 2 error LNK2019: unresolved external symbol "extern "C" int __cdecl _CrtDbgReportW(int,wchar_t const *,int,wchar_t const *,wchar_t const *,...)" (?_CrtDbgReportW@@$$J0YAHHPB_WH00ZZ) referenced in function "public: int const & __thiscall std::_Vector_const_iterator<class std::_Vector_val<int,class std::allocator<int> > >::operator*(void)const " (??D?$_Vector_const_iterator@V?$_Vector_val@HV?$allocator@H@std@@@std@@@std@@$$FQBEABHXZ) D:\P\Exercises\TestAlgorithms\TestAlgorithms.objError 3 error LNK1120: 2 unresolved externals D:\P\Exercises\Debug\DefaultTest.dll 1vs. similar code that does compile:[TestMethod]void test_lis(){ //vector<int> vSeq; int seq[] = {7, 8, 2, 3, 4}; // 2, 3, 4 vector<int> vSeq = vector<int>(seq, seq + sizeof(seq)/sizeof(int)); Assert::AreEqual(3, CAlgorithms::lis(vSeq), "LIS Length");}
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results