Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2050
  • Last Modified:

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,struct std::char_traits<char> > std::cin" (?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A)
billing.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > std::cout" (?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A)
billing.obj : error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::clear(int,bool)" (?clear@ios_base@std@@QAEXH_N@Z)
billing.obj : error LNK2001: unresolved external symbol "bool __cdecl std::uncaught_exception(void)" (?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(void)" (??1ios_base@std@@UAE@XZ)
billing.obj : error LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * std::locale::_Locimp::_Global" (?_Global@_Locimp@locale@std@@0PAV123@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_iobuf@@PBDH@Z)
billing.obj : error LNK2001: unresolved external symbol "protected: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@IAEXXZ)
billing.obj : error LNK2001: unresolved external symbol "protected: void __thiscall std::ios_base::_Init(void)" (?_Init@ios_base@std@@IAEXXZ)
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(unsigned int,bool)const " (?_Getfacet@locale@std@@QBEPBVfacet@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@@2V0locale@2@A)
billing.obj : error LNK2001: unresolved external symbol "private: static int std::locale::id::_Id_cnt" (?_Id_cnt@id@locale@std@@0HA)
billing.obj : error LNK2001: unresolved external symbol "private: static short const * const std::ctype<char>::_Cltab" (?_Cltab@?$ctype@D@std@@0PBFB)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Locinfo::~_Locinfo(void)" (??1_Locinfo@std@@QAE@XZ)
billing.obj : error LNK2001: unresolved external symbol "public: __thiscall std::_Locinfo::_Locinfo(char 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@@QAEAAV12@PAVfacet@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
0
claracruz
Asked:
claracruz
  • 4
  • 4
  • 3
  • +2
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
Just try with "Rebuild all" option
0
 
claracruzAuthor Commented:
How do i do that?
0
 
Jaime OlivaresSoftware ArchitectCommented:
In the "Build" menu, there is an option called "Rebuild all"
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jkrCommented:
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.
0
 
claracruzAuthor Commented:
it still does not work
0
 
claracruzAuthor Commented:
what is the link options
0
 
Jaime OlivaresSoftware ArchitectCommented:
Are you using different compiler versions?
Are you sure you have copied all source files?
0
 
claracruzAuthor Commented:
yes and yes... could it be the actual software, have you encountered this problem before???
0
 
Jaime OlivaresSoftware ArchitectCommented:
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.
0
 
jkrCommented:
Or, could you post the compiler options you are using?
0
 
itsmeandnobodyelseCommented:
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
0
 
jkrCommented:
>>The linker doesn't find C++ standard libraries.

Then, there would be a different error message stating that...
0
 
carribusCommented:
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.
0
 
itsmeandnobodyelseCommented:
>> this indicates that you're probably using VC 2002/2003.NET on your laptop.

that isn't much likely as vs.net solutions couldn't be opened in VC 6. I think that the VC 6.0 installation wasn't properly done at the PC (e. g. skipped STL or wrong paths to CD drive).

So, i would suggest to uninstall, install VC 6.0 on the PC with all options and try again..

Regards, Alex
 

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 4
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now