C/C++ Build Errors
Visual Studio 2008
This section is an alphanumeric reference of the error messages generated by the build tools. To get help on a particular error message, either click the mouse on an error number in the Output window and press F1, or type the error number in the Look for box in the Index.
C++ Build Errors while porting an application from Linux to Windows using Microsoft Visual C++
Hi,
I am trying to port a linux application into windows, I have 2 modules, one static library and an executable module. Both modules are compiling fine seperately. But during the linking to make the exe, it is throwing some linking errors as below;
1>Speech_Tools.lib(est_file.obj) : error LNK2001: unresolved external symbol "public: int __thiscall EST_TKVL<class EST_String,class EST_String>::add_item(class EST_String const &,class EST_String const &,int)" (?add_item@?$EST_TKVL@VEST_String@@V1@@@QAEHABVEST_String@@0H@Z)
1>Speech_Tools.lib(EST_WaveFile.obj) : error LNK2001: unresolved external symbol "public: int __thiscall EST_TKVL<class EST_String,class EST_String>::add_item(class EST_String const &,class EST_String const &,int)" (?add_item@?$EST_TKVL@VEST_String@@V1@@@QAEHABVEST_String@@0H@Z)
1>Speech_Tools.lib(cmd_line.obj) : error LNK2001: unresolved external symbol "public: int __thiscall EST_TKVL<class EST_String,class EST_String>::add_item(class EST_String const &,class EST_String const &,int)" (?add_item@?$EST_TKVL@VEST_String@@V1@@@QAEHABVEST_String@@0H@Z)
Speech_Tools.lib(EST_WaveFile.obj) : error LNK2001: unresolved external symbol "public: class EST_String & __thiscall EST_TKVL<class EST_String,class EST_String>::val(class EST_String const &,bool)" (?val@?$EST_TKVL@VEST_String@@V1@@@QAEAAVEST_String@@ABV2@_N@Z)
1>Speech_Tools.lib(relation_io.obj) : error LNK2001: unresolved external symbol "public: class EST_String & __thiscall EST_TKVL<class EST_String,class EST_String>::val(class EST_String const &,bool)" (?val@?$EST_TKVL@VEST_String@@V1@@@QAEAAVEST_String@@ABV2@_N@Z)
1>Speech_Tools.lib(EST_TrackFile.obj) : error LNK2001: unresolved external symbol "public: class EST_String & __thiscall EST_TKVL<class EST_String,class EST_String>::val(class EST_String const &,bool)" (?val@?$EST_TKVL@VEST_String@@V1@@@QAEAAVEST_String@@ABV2@_N@Z)
Speech_Tools.lib(EST_TrackFile.obj) : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_String>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@V1@@@QBE?BHABVEST_String@@@Z)
1>Speech_Tools.lib(EST_wave_io.obj) : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_String>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@V1@@@QBE?BHABVEST_String@@@Z)
1>Speech_Tools.lib(EST_wave_aux.obj) : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_String>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@V1@@@QBE?BHABVEST_String@@@Z)
features.obj : error LNK2019: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_Val>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@VEST_Val@@@@QBE?BHABVEST_String@@@Z) referenced in function "class EST_Item * __cdecl parent_to(class EST_Item *,class EST_String const &)" (?parent_to@@YAPAVEST_Item@@PAV1@ABVEST_String@@@Z)
1>wagon_interp.obj : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_Val>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@VEST_Val@@@@QBE?BHABVEST_String@@@Z)
1>mettree.obj : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_Val>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@VEST_Val@@@@QBE?BHABVEST_String@@@Z)
By viewing the errors, I am seeing all are related errors, here is some more deatils about my application.
It is a speech processing application, which has 2 modules, speech_tool as well as the interfacing layer module.
All the errors mentioned above are I checked in the function modules, and it is already there, and compiling properly and not under any of the conditional macros.
Kindly look this issue and help me to solve these errors.
I am trying to port a linux application into windows, I have 2 modules, one static library and an executable module. Both modules are compiling fine seperately. But during the linking to make the exe, it is throwing some linking errors as below;
1>Speech_Tools.lib(est_file.obj) : error LNK2001: unresolved external symbol "public: int __thiscall EST_TKVL<class EST_String,class EST_String>::add_item(class EST_String const &,class EST_String const &,int)" (?add_item@?$EST_TKVL@VEST_String@@V1@@@QAEHABVEST_String@@0H@Z)
1>Speech_Tools.lib(EST_WaveFile.obj) : error LNK2001: unresolved external symbol "public: int __thiscall EST_TKVL<class EST_String,class EST_String>::add_item(class EST_String const &,class EST_String const &,int)" (?add_item@?$EST_TKVL@VEST_String@@V1@@@QAEHABVEST_String@@0H@Z)
1>Speech_Tools.lib(cmd_line.obj) : error LNK2001: unresolved external symbol "public: int __thiscall EST_TKVL<class EST_String,class EST_String>::add_item(class EST_String const &,class EST_String const &,int)" (?add_item@?$EST_TKVL@VEST_String@@V1@@@QAEHABVEST_String@@0H@Z)
Speech_Tools.lib(EST_WaveFile.obj) : error LNK2001: unresolved external symbol "public: class EST_String & __thiscall EST_TKVL<class EST_String,class EST_String>::val(class EST_String const &,bool)" (?val@?$EST_TKVL@VEST_String@@V1@@@QAEAAVEST_String@@ABV2@_N@Z)
1>Speech_Tools.lib(relation_io.obj) : error LNK2001: unresolved external symbol "public: class EST_String & __thiscall EST_TKVL<class EST_String,class EST_String>::val(class EST_String const &,bool)" (?val@?$EST_TKVL@VEST_String@@V1@@@QAEAAVEST_String@@ABV2@_N@Z)
1>Speech_Tools.lib(EST_TrackFile.obj) : error LNK2001: unresolved external symbol "public: class EST_String & __thiscall EST_TKVL<class EST_String,class EST_String>::val(class EST_String const &,bool)" (?val@?$EST_TKVL@VEST_String@@V1@@@QAEAAVEST_String@@ABV2@_N@Z)
Speech_Tools.lib(EST_TrackFile.obj) : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_String>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@V1@@@QBE?BHABVEST_String@@@Z)
1>Speech_Tools.lib(EST_wave_io.obj) : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_String>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@V1@@@QBE?BHABVEST_String@@@Z)
1>Speech_Tools.lib(EST_wave_aux.obj) : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_String>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@V1@@@QBE?BHABVEST_String@@@Z)
features.obj : error LNK2019: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_Val>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@VEST_Val@@@@QBE?BHABVEST_String@@@Z) referenced in function "class EST_Item * __cdecl parent_to(class EST_Item *,class EST_String const &)" (?parent_to@@YAPAVEST_Item@@PAV1@ABVEST_String@@@Z)
1>wagon_interp.obj : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_Val>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@VEST_Val@@@@QBE?BHABVEST_String@@@Z)
1>mettree.obj : error LNK2001: unresolved external symbol "public: int const __thiscall EST_TKVL<class EST_String,class EST_Val>::present(class EST_String const &)const " (?present@?$EST_TKVL@VEST_String@@VEST_Val@@@@QBE?BHABVEST_String@@@Z)
By viewing the errors, I am seeing all are related errors, here is some more deatils about my application.
It is a speech processing application, which has 2 modules, speech_tool as well as the interfacing layer module.
All the errors mentioned above are I checked in the function modules, and it is already there, and compiling properly and not under any of the conditional macros.
Kindly look this issue and help me to solve these errors.
- 3/9/2010
- AKVT