Link errors while building VC6 project using VC++ Toolkit 2003

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Leith Bade (leithalweapons_at_msn.com)
Date: 05/14/04


Date: Fri, 14 May 2004 02:16:05 -0700

I have been trying to use the new Visual C++ Toolkit 2003 with the VC6 IDE.
I set up the executable, inlcude, and library directories to point to the new compilers.
I had to fix a few errors in the MFC6 <afxtempl.h> to get it to compile with the better standards confomance (mainly omitted typename, and lazyness with specialized templates - using BASE_CLASS & TYPE instead of CObList & CObList*).
Now I get some strange linker errors, and I don't know much about linker errors :-(

Here's my linker output (for debug):
--------------------Configuration: WinCPUID - Win32 Debug--------------------
Linking...
Microsoft (R) Incremental Linker Version 7.10.3052
Copyright (C) Microsoft Corporation. All rights reserved.
/subsystem:windows /incremental:yes "/pdb:Debug/WinCPUID.pdb" /debug /machine:I386 "/out:Debug/WinCPUID.exe"
".\Debug\Clouds.obj"
".\Debug\CPUData.obj"
".\Debug\CustomPropSheet.obj"
".\Debug\file_ver.obj"
".\Debug\PropPageAbout.obj"
".\Debug\PropPageCPUID.obj"
".\Debug\PropPageInfo.obj"
".\Debug\StdAfx.obj"
".\Debug\WinCPUID.obj"
".\Debug\WinCPUID.res"
PropPageAbout.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
PropPageCPUID.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
PropPageInfo.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
WinCPUID.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
Clouds.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "public: __thiscall CCloudsCtrl::CCloudsCtrl(void)" (??0CCloudsCtrl@@QAE@XZ)
CPUData.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
CustomPropSheet.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
file_ver.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
PropPageAbout.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
PropPageCPUID.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
PropPageInfo.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
WinCPUID.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
Clouds.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
CPUData.obj : error LNK2019: unresolved external symbol __RTC_Shutdown referenced in function "public: int __thiscall CCPUData::Update(void)" (?Update@CCPUData@@QAEHXZ)
CustomPropSheet.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
file_ver.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
PropPageAbout.obj : error LNK2001: unresolved external symbol __RTC_InitBase
PropPageCPUID.obj : error LNK2001: unresolved external symbol __RTC_InitBase
PropPageInfo.obj : error LNK2001: unresolved external symbol __RTC_InitBase
WinCPUID.obj : error LNK2001: unresolved external symbol __RTC_InitBase
Clouds.obj : error LNK2001: unresolved external symbol __RTC_InitBase
CPUData.obj : error LNK2001: unresolved external symbol __RTC_InitBase
CustomPropSheet.obj : error LNK2001: unresolved external symbol __RTC_InitBase
file_ver.obj : error LNK2001: unresolved external symbol __RTC_InitBase
PropPageAbout.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function "public: __thiscall CPropPageAbout::CPropPageAbout(void)" (??0CPropPageAbout@@QAE@XZ)
PropPageCPUID.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
WinCPUID.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
Clouds.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function "protected: virtual void __thiscall CCloudsCtrl::PreSubclassWindow(void)" (?PreSubclassWindow@CCloudsCtrl@@MAEXXZ)
CPUData.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
CustomPropSheet.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
file_ver.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function "public: __thiscall CFileVersionInfo::CFileVersionInfo(void)" (??0CFileVersionInfo@@QAE@XZ)
Clouds.obj : error LNK2019: unresolved external symbol __ftol2 referenced in function "protected: void __thiscall CCloudsCtrl::GeneratePlasma(int * const)" (?GeneratePlasma@CCloudsCtrl@@IAEXQAH@Z)
file_ver.obj : error LNK2019: unresolved external symbol _VerQueryValueA@16 referenced in function "public: int __thiscall CFileVersionInfo::ReadVersionInfo(class CString const &)" (?ReadVersionInfo@CFileVersionInfo@@QAEHABVCString@@@Z)
file_ver.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoA@16 referenced in function "public: int __thiscall CFileVersionInfo::ReadVersionInfo(class CString const &)" (?ReadVersionInfo@CFileVersionInfo@@QAEHABVCString@@@Z)
file_ver.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeA@8 referenced in function "public: int __thiscall CFileVersionInfo::ReadVersionInfo(class CString const &)" (?ReadVersionInfo@CFileVersionInfo@@QAEHABVCString@@@Z)
Debug/WinCPUID.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.

For Release:
--------------------Configuration: WinCPUID - Win32 Release--------------------
Linking...
Clouds.obj : error LNK2019: unresolved external symbol __ftol2 referenced in function "protected: int __thiscall CCloudsCtrl::GetRandomValue(int,int)" (?GetRandomValue@CCloudsCtrl@@IAEHHH@Z)
Clouds.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) referenced in function "public: virtual __thiscall CCloudsCtrl::~CCloudsCtrl(void)" (??1CCloudsCtrl@@UAE@XZ)
WinCPUID.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
Clouds.obj : error LNK2019: unresolved external symbol "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) referenced in function "protected: virtual void __thiscall CCloudsCtrl::PreSubclassWindow(void)" (?PreSubclassWindow@CCloudsCtrl@@MA
EXXZ)
file_ver.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z)
WinCPUID.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z)
Release/WinCPUID.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

How can I fix these?

---
Leith Bade
Project Admin
WinCPUID
leithalweapons@msn.com
wincpuid.sourceforge.net


Relevant Pages

  • Starting MATLAB engine from Visual C++ 2003
    ... * Start the MATLAB engine locally by executing the string ... engdemo.obj: error LNK2019: unresolved external symbol _engClose ... engdemo.obj: error LNK2019: unresolved external symbol _mxGetPr ...
    (comp.soft-sys.matlab)
  • Re: What declarations of main exist in the c standard?
    ... # POLINK: error: Unresolved external symbol '_environ'. ... # POLINK: fatal error: 1 unresolved external. ... Which, of course, would be correct for an ISO C implementation, since ...
    (comp.lang.c)
  • Re: iostream + iostream.h
    ... it was less work to rewrite the code than I thought but ... When I ignore msvcprtd.lib I get approx 400 linker errors like the ... NumRecCpp.lib: error LNK2019: unresolved external symbol ... The 'ios::nocreate' flag can just be ignored? ...
    (comp.lang.cpp)
  • Adding C functions to COM object
    ... MSRCom error LNK2019: unresolved external symbol _NdrCStdStubBuffer2_Release@8 referenced in function _CStdStubBuffer2_Release@4 ... if Ive commited any errors plz specify that and how to solve this linker errors.. ...
    (microsoft.public.win32.programmer.ole)
  • error LNK2001: unresolved external symbol __CxxFrameHandler3
    ... get the linker errors below. ... 1>libcpmtd.lib: error LNK2001: unresolved external symbol ... symbol __CxxFrameHandler3 ... /OUT:"Windows Mobile 6 Professional SDK \Debug ...
    (microsoft.public.vc.atl)