求问修改dump时出现的问题
陆其明吧
全部回复
仅看楼主
level 1
prim_f 楼主
我就是那个发帖问怎么写一个ts流处理的filter的人,有人提示说直接改dump。看完dump之后就调试了一下,觉得没问题。现在写完了数据处理部分。但是刚把那部分的cpp和.h加上去。链接就出错。
有没有大侠能告知一下错误原因?
2011年10月29日 18点10分 1
level 1
prim_f 楼主
错误如下所示
2011年10月29日 18点10分 2
level 1
prim_f 楼主
正在创建库 .\Debug_Unicode/dump.lib 和对象 .\Debug_Unicode/dump.exp1>ts_eit.obj : error LNK2019: 无法解析的外部符号 "__dec
lsp
ec(dllimport) void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (__imp_?_Debug_message@std@@YAXPB_W0I@Z),该符号在函数 "public: class ts_descriptor * & __thiscall std::vector<class ts_descriptor *,class std::allocator<class ts_descriptor *> >::operator[](unsigned int)" (??A?$vector@PAVts_descriptor@@V?$allocator@PAVts_descriptor@@@std@@@std@@QAEAAPAVts_descriptor@@I@Z) 中被引用1>ts_nit.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (__imp_?_Debug_message@std@@YAXPB_W0I@Z)1>ts_sdt.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (__imp_?_Debug_message@std@@YAXPB_W0I@Z)1>ts_eit.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Lockit::~_Lockit(void)" (__imp_??1_Lockit@std@@QAE@XZ),该符号在函数 "public: class std::_Iterator_base & __thiscall std::_Iterator_base::operator=(class std::_Iterator_base const &)" (??4_Iterator_base@std@@QAEAAV01@ABV01@@Z) 中被引用1>ts_nit.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Lockit::~_Lockit(void)" (__imp_??1_Lockit@std@@QAE@XZ)1>ts_sdt.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Lockit::~_Lockit(void)" (__imp_??1_Lockit@std@@QAE@XZ)1>ts_eit.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Lockit::_Lockit(int)" (__imp_??0_Lockit@std@@QAE@H@Z),该符号在函数 "public: class std::_Iterator_base & __thiscall std::_Iterator_base::operator=(class std::_Iterator_base const &)" (??4_Iterator_base@std@@QAEAAV01@ABV01@@Z) 中被引用1>ts_nit.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Lockit::_Lockit(int)" (__imp_??0_Lockit@std@@QAE@H@Z)1>ts_sdt.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Lockit::_Lockit(int)" (__imp_??0_Lockit@std@@QAE@H@Z)1>ts_eit.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ),该符号在函数 "protected: void __thiscall std::vector<class ts_descriptor *,class std::allocator<class ts_descriptor *> >::_Tidy(void)" (?_Tidy@?$vector@PAVts_descriptor@@V?$allocator@PAVts_descriptor@@@std@@@std@@IAEXXZ) 中被引用1>ts_nit.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ)1>ts_sdt.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@_Container_base_secure@std@@QBEXXZ)1>ts_eit.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ),该符号在函数 "protected: __thiscall std::_Container_base_aux_alloc_empty<class std::allocator<class ts_descriptor *> >::~_Container_base_aux_alloc_empty<class std::allocator<class ts_descriptor *> >(void)" (??1?$_Container_base_aux_alloc_empty@V?$allocator@PAVts_descriptor@@@std@@@std@@IAE@XZ) 中被引用1>ts_nit.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ)1>ts_sdt.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ)1>ts_eit.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (__imp_??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ),该符号在函数 "protected: static void __stdcall std::vector<class ts_descriptor *,class std::allocator<class ts_descriptor *> >::_Xlen(void)" (?_Xlen@?$vector@PAVts_descriptor@@V?$allocator@PAVts_descriptor@@@std@@@std@@KGXXZ) 
2011年10月29日 22点10分 6
level 1
prim_f 楼主
obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)1>ts_eit.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (__imp_??0_Container_base_secure@std@@QAE@XZ),该符号在函数 "protected: __thiscall std::_Container_base_aux_alloc_empty<class std::allocator<class ts_descriptor *> >::_Container_base_aux_alloc_empty<class std::allocator<class ts_descriptor *> >(class std::allocator<class ts_descriptor *>)" (??0?$_Container_base_aux_alloc_empty@V?$allocator@PAVts_descriptor@@@std@@@std@@IAE@V?$allocator@PAVts_descriptor@@@1@@Z) 中被引用1>ts_nit.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (__imp_??0_Container_base_secure@std@@QAE@XZ)1>ts_sdt.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (__imp_??0_Container_base_secure@std@@QAE@XZ)1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (__imp_??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ),该符号在函数 "public: void __thiscall ts_table::ts_seek_sections(void)" (?ts_seek_sections@ts_table@@QAEXXZ) 中被引用1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall std::ios_base::eof(void)const " (__imp_?eof@ios_base@std@@QBE_NXZ),该符号在函数 "public: void __thiscall ts_table::ts_seek_sections(void)" (?ts_seek_sections@ts_table@@QAEXXZ) 中被引用1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall std::ios_base::operator void *(void)const " (__imp_??Bios_base@std@@QBEPAXXZ),该符号在函数 "public: void __thiscall ts_table::ts_seek_sections(void)" (?ts_seek_sections@ts_table@@QAEXXZ) 中被引用1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_istream<char,struct std::char_traits<char> > & __thiscall std::basic_istream<char,struct std::char_traits<char> >::read(char *,int)" (__imp_?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z),该符号在函数 "public: void __thiscall ts_table::ts_seek_sections(void)" (?ts_seek_sections@ts_table@@QAEXXZ) 中被引用1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (__imp_??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z),该符号在函数 "public: void __thiscall ts_table::ts_seek_sections(void)" (?ts_seek_sections@ts_table@@QAEXXZ) 中被引用1>ts_table.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > std::cout" (__imp_?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A)1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (__imp_?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z),该符号在函数 "public: void __thiscall ts_table::ts_seek_sections(void)" (?ts_seek_sections@ts_table@@QAEXXZ) 中被引用1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall std::ios_base::operator!(void)const " (__imp_??7ios_base@std@@QBE_NXZ),该符号在函数 "public: void __thiscall ts_table::ts_seek_sections(void)" (?ts_seek_sections@ts_table@@QAEXXZ) 中被引用1>ts_table.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::open(char const *,int,int)" (__imp_?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z),该符号在函数 "public: 
2011年10月29日 22点10分 8
1