Link errors while building VC6 project using VC++ Toolkit 2003
From: Leith Bade (leithalweapons_at_msn.com)
Date: 05/14/04
- Next message: Alper AKcayoz: "How to handle 'error C2440'"
- Previous message: songie D: "Loading a big array on the heap"
- Next in thread: David Lowndes: "Re: Link errors while building VC6 project using VC++ Toolkit 2003"
- Reply: David Lowndes: "Re: Link errors while building VC6 project using VC++ Toolkit 2003"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Alper AKcayoz: "How to handle 'error C2440'"
- Previous message: songie D: "Loading a big array on the heap"
- Next in thread: David Lowndes: "Re: Link errors while building VC6 project using VC++ Toolkit 2003"
- Reply: David Lowndes: "Re: Link errors while building VC6 project using VC++ Toolkit 2003"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|