claracruz
asked on
compile problem in c++
I am running a program on my PC and it gives the following errors;-
LINK : LNK6004: Debug/billing.exe not found or not built by the last incremental link; performing full link
billing.obj : error LNK2001: unresolved external symbol "class std::basic_istream<char,st ruct std::char_traits<char> > std::cin" (?cin@std@@3V?$basic_istre am@DU?$cha r_traits@D @std@@@1@A )
billing.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,st ruct std::char_traits<char> > std::cout" (?cout@std@@3V?$basic_ostr eam@DU?$ch ar_traits@ D@std@@@1@ A)
billing.obj : error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::clear(int,b ool)" (?clear@ios_base@std@@QAEX H_N@Z)
billing.obj : error LNK2001: unresolved external symbol "bool __cdecl std::uncaught_exception(vo id)" (?uncaught_exception@std@@ YA_NXZ)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::Init( void)" (??0Init@ios_base@std@@QAE @XZ)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::~Init (void)" (??1Init@ios_base@std@@QAE @XZ)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Winit::_Winit(void)" (??0_Winit@std@@QAE@XZ)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Winit::~_Winit(void) " (??1_Winit@std@@QAE@XZ)
billing.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall std::ios_base::~ios_base(v oid)" (??1ios_base@std@@UAE@XZ)
billing.obj : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * std::locale::_Locimp::_Glo bal" (?_Global@_Locimp@locale@s td@@0PAV12 3@A)
billing.obj : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_ Locimp@12@ XZ)
billing.obj : error LNK2001: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
billing.obj : error LNK2001: unresolved external symbol "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ)
billing.obj : error LNK2001: unresolved external symbol "__int64 const std::_Fpz" (?_Fpz@std@@3_JB)
billing.obj : error LNK2001: unresolved external symbol "struct _iobuf * __cdecl std::__Fiopen(char const *,int)" (?__Fiopen@std@@YAPAU_iobu f@@PBDH@Z)
billing.obj : error LNK2001: unresolved external symbol "protected: void __thiscall std::ios_base::_Addstd(voi d)" (?_Addstd@ios_base@std@@IA EXXZ)
billing.obj : error LNK2001: unresolved external symbol "protected: void __thiscall std::ios_base::_Init(void) " (?_Init@ios_base@std@@IAEX XZ)
billing.obj : error LNK2001: unresolved external symbol "public: bool __thiscall std::locale::_Iscloc(void) const " (?_Iscloc@locale@std@@QBE_ NXZ)
billing.obj : error LNK2001: unresolved external symbol "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(uns igned int,bool)const " (?_Getfacet@locale@std@@QB EPBVfacet@ 12@I_N@Z)
billing.obj : error LNK2001: unresolved external symbol "public: static class std::locale::id std::ctype<char>::id" (?id@?$ctype@D@std@@2V0loc ale@2@A)
billing.obj : error LNK2001: unresolved external symbol "private: static int std::locale::id::_Id_cnt" (?_Id_cnt@id@locale@std@@0 HA)
billing.obj : error LNK2001: unresolved external symbol "private: static short const * const std::ctype<char>::_Cltab" (?_Cltab@?$ctype@D@std@@0P BFB)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Locinfo::~_Locinfo(v oid)" (??1_Locinfo@std@@QAE@XZ)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Locinfo::_Locinfo(ch ar const *)" (??0_Locinfo@std@@QAE@PBD@ Z)
billing.obj : error LNK2001: unresolved external symbol __Getctype
billing.obj : error LNK2001: unresolved external symbol __Tolower
billing.obj : error LNK2001: unresolved external symbol __Toupper
billing.obj : error LNK2001: unresolved external symbol "public: class std::locale & __thiscall std::locale::_Addfac(class std::locale::facet *,unsigned int,unsigned int)" (?_Addfac@locale@std@@QAEA AV12@PAVfa cet@12@II@ Z)
billing.obj : error LNK2001: unresolved external symbol __Stof
billing.obj : error LNK2001: unresolved external symbol __Stod
billing.obj : error LNK2001: unresolved external symbol __Stold
billing.obj : error LNK2001: unresolved external symbol __Getcvt
Debug/billing.exe : fatal error LNK1120: 32 unresolved externals
Error executing link.exe.
billing.exe - 33 error(s), 0 warning(s)
the program runs perfectly on my laptop, what could be going wrong. I am using visual studio 6 on my PC
LINK : LNK6004: Debug/billing.exe not found or not built by the last incremental link; performing full link
billing.obj : error LNK2001: unresolved external symbol "class std::basic_istream<char,st
billing.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,st
billing.obj : error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::clear(int,b
billing.obj : error LNK2001: unresolved external symbol "bool __cdecl std::uncaught_exception(vo
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::Init(
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::~Init
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Winit::_Winit(void)"
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Winit::~_Winit(void)
billing.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall std::ios_base::~ios_base(v
billing.obj : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * std::locale::_Locimp::_Glo
billing.obj : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_
billing.obj : error LNK2001: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
billing.obj : error LNK2001: unresolved external symbol "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ)
billing.obj : error LNK2001: unresolved external symbol "__int64 const std::_Fpz" (?_Fpz@std@@3_JB)
billing.obj : error LNK2001: unresolved external symbol "struct _iobuf * __cdecl std::__Fiopen(char const *,int)" (?__Fiopen@std@@YAPAU_iobu
billing.obj : error LNK2001: unresolved external symbol "protected: void __thiscall std::ios_base::_Addstd(voi
billing.obj : error LNK2001: unresolved external symbol "protected: void __thiscall std::ios_base::_Init(void)
billing.obj : error LNK2001: unresolved external symbol "public: bool __thiscall std::locale::_Iscloc(void)
billing.obj : error LNK2001: unresolved external symbol "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(uns
billing.obj : error LNK2001: unresolved external symbol "public: static class std::locale::id std::ctype<char>::id" (?id@?$ctype@D@std@@2V0loc
billing.obj : error LNK2001: unresolved external symbol "private: static int std::locale::id::_Id_cnt" (?_Id_cnt@id@locale@std@@0
billing.obj : error LNK2001: unresolved external symbol "private: static short const * const std::ctype<char>::_Cltab" (?_Cltab@?$ctype@D@std@@0P
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Locinfo::~_Locinfo(v
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Locinfo::_Locinfo(ch
billing.obj : error LNK2001: unresolved external symbol __Getctype
billing.obj : error LNK2001: unresolved external symbol __Tolower
billing.obj : error LNK2001: unresolved external symbol __Toupper
billing.obj : error LNK2001: unresolved external symbol "public: class std::locale & __thiscall std::locale::_Addfac(class
billing.obj : error LNK2001: unresolved external symbol __Stof
billing.obj : error LNK2001: unresolved external symbol __Stod
billing.obj : error LNK2001: unresolved external symbol __Stold
billing.obj : error LNK2001: unresolved external symbol __Getcvt
Debug/billing.exe : fatal error LNK1120: 32 unresolved externals
Error executing link.exe.
billing.exe - 33 error(s), 0 warning(s)
the program runs perfectly on my laptop, what could be going wrong. I am using visual studio 6 on my PC
Just try with "Rebuild all" option
ASKER
How do i do that?
In the "Build" menu, there is an option called "Rebuild all"
You can select that from the 'Build' menu. However, since the log says 'performing full link', I doubt that this will help. Check if 'msvrpct.lib' is listed under the 'Link' options.
ASKER
it still does not work
ASKER
what is the link options
Are you using different compiler versions?
Are you sure you have copied all source files?
Are you sure you have copied all source files?
ASKER
yes and yes... could it be the actual software, have you encountered this problem before???
Are you using different compiler versions?
Is that true? You will experience some problems, better you can create a new project, cut and paste all your code there.
Is that true? You will experience some problems, better you can create a new project, cut and paste all your code there.
Or, could you post the compiler options you are using?
The linker doesn't find C++ standard libraries.
When using MSVC6 goto menu Tools - Options and choose the Directories tab. Select 'Library Files' from combobox 'Show directories for'.
Check that all library paths are valid - or remove them. There should be at least valid paths to ...\vc98\lib and ...\vc98\mfc\lib.
Regards, Alex
When using MSVC6 goto menu Tools - Options and choose the Directories tab. Select 'Library Files' from combobox 'Show directories for'.
Check that all library paths are valid - or remove them. There should be at least valid paths to ...\vc98\lib and ...\vc98\mfc\lib.
Regards, Alex
>>The linker doesn't find C++ standard libraries.
Then, there would be a different error message stating that...
Then, there would be a different error message stating that...
You mentioned that you are using VC6 on your desktop pc (and this is where you receive all your problems), while on your laptop, the code compiles ok... this indicates that you're probably using VC 2002/2003.NET on your laptop.
Suggestion: Install VC2002/2003.net on your home pc as well.
Suggestion: Install VC2002/2003.net on your home pc as well.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.