473,769 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.305
Copyright (C) Microsoft Corporation. All rights reserved
/subsystem:windo ws /incremental:yes "/pdb:Debug/WinCPUID.pdb" /debug /machine:I386 "/out:Debug/WinCPUID.exe"
".\Debug\Clouds .obj"
".\Debug\CPUDat a.obj"
".\Debug\Custom PropSheet.obj"
".\Debug\file_v er.obj"
".\Debug\PropPa geAbout.obj"
".\Debug\PropPa geCPUID.obj"
".\Debug\PropPa geInfo.obj"
".\Debug\StdAfx .obj"
".\Debug\WinCPU ID.obj"
".\Debug\WinCPU ID.res"
PropPageAbout.o bj : error LNK2001: unresolved external symbol __RTC_CheckEs
PropPageCPUID.o bj : error LNK2001: unresolved external symbol __RTC_CheckEs
PropPageInfo.ob j : error LNK2001: unresolved external symbol __RTC_CheckEs
WinCPUID.obj : error LNK2001: unresolved external symbol __RTC_CheckEs
Clouds.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "public: __thiscall CCloudsCtrl::CC loudsCtrl(void) " (??0CCloudsCtrl @@QAE@XZ
CPUData.obj : error LNK2001: unresolved external symbol __RTC_CheckEs
CustomPropSheet .obj : error LNK2001: unresolved external symbol __RTC_CheckEs
file_ver.obj : error LNK2001: unresolved external symbol __RTC_CheckEs
PropPageAbout.o bj : error LNK2001: unresolved external symbol __RTC_Shutdow
PropPageCPUID.o bj : error LNK2001: unresolved external symbol __RTC_Shutdow
PropPageInfo.ob j : error LNK2001: unresolved external symbol __RTC_Shutdow
WinCPUID.obj : error LNK2001: unresolved external symbol __RTC_Shutdow
Clouds.obj : error LNK2001: unresolved external symbol __RTC_Shutdow
CPUData.obj : error LNK2019: unresolved external symbol __RTC_Shutdown referenced in function "public: int __thiscall CCPUData::Updat e(void)" (?Update@CCPUDa ta@@QAEHXZ
CustomPropSheet .obj : error LNK2001: unresolved external symbol __RTC_Shutdow
file_ver.obj : error LNK2001: unresolved external symbol __RTC_Shutdow
PropPageAbout.o bj : error LNK2001: unresolved external symbol __RTC_InitBas
PropPageCPUID.o bj : error LNK2001: unresolved external symbol __RTC_InitBas
PropPageInfo.ob j : error LNK2001: unresolved external symbol __RTC_InitBas
WinCPUID.obj : error LNK2001: unresolved external symbol __RTC_InitBas
Clouds.obj : error LNK2001: unresolved external symbol __RTC_InitBas
CPUData.obj : error LNK2001: unresolved external symbol __RTC_InitBas
CustomPropSheet .obj : error LNK2001: unresolved external symbol __RTC_InitBas
file_ver.obj : error LNK2001: unresolved external symbol __RTC_InitBas
PropPageAbout.o bj : error LNK2019: unresolved external symbol @_RTC_CheckStac kVars@8 referenced in function "public: __thiscall CPropPageabout: :CPropPageAbout (void)" (??0CPropPageAb out@@QAE@XZ
PropPageCPUID.o bj : error LNK2001: unresolved external symbol @_RTC_CheckStac kVars@
WinCPUID.obj : error LNK2001: unresolved external symbol @_RTC_CheckStac kVars@
Clouds.obj : error LNK2019: unresolved external symbol @_RTC_CheckStac kVars@8 referenced in function "protected: virtual void __thiscall CCloudsCtrl::Pr eSubclassWindow (void)" (?PreSubclassWi ndow@CCloudsCtr l@@MAEXXZ
CPUData.obj : error LNK2001: unresolved external symbol @_RTC_CheckStac kVars@
CustomPropSheet .obj : error LNK2001: unresolved external symbol @_RTC_CheckStac kVars@
file_ver.obj : error LNK2019: unresolved external symbol @_RTC_CheckStac kVars@8 referenced in function "public: __thiscall CFileVersionInf o::CFileVersion Info(void)" (??0CFileVersio nInfo@@QAE@XZ
Clouds.obj : error LNK2019: unresolved external symbol __ftol2 referenced in function "protected: void __thiscall CCloudsCtrl::Ge neratePlasma(in t * const)" (?GeneratePlasm a@CCloudsCtrl@@ IAEXQAH@Z
file_ver.obj : error LNK2019: unresolved external symbol _VerQueryValueA @16 referenced in function "public: int __thiscall CFileVersionInf o::ReadVersionI nfo(class CString const &)" (?ReadVersionIn fo@CFileVersion Info@@QAEHABVCS tring@@@Z)
file_ver.obj : error LNK2019: unresolved external symbol _GetFileVersion InfoA@16 referenced in function "public: int __thiscall CFileVersionInf o::ReadVersionI nfo(class CString const &)" (?ReadVersionIn fo@CFileVersion Info@@QAEHABVCS tring@@@Z)
file_ver.obj : error LNK2019: unresolved external symbol _GetFileVersion InfoSizeA@8 referenced in function "public: int __thiscall CFileVersionInf o::ReadVersionI nfo(class CString const &)" (?ReadVersionIn fo@CFileVersion Info@@QAEHABVCS tring@@@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::Ge tRandomValue(in t,int)" (?GetRandomValu e@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::~C CloudsCtrl(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::Pr eSubclassWindow (void)" (?PreSubclassWi ndow@CCloudsCtr l@@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
le************@ msn.com
wincpuid.source forge.net
Nov 17 '05 #1
3 7367
>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. Now I get some strange linker errors, and I don't know much about linker errors :-(

Here's my linker output (for debug):
..
PropPageAbout. obj : error LNK2001: unresolved external symbol __RTC_CheckEsp


Looks like you might still be linking with the V6 libraries.

Dave
Nov 17 '05 #2

I´m still having the problem:
error LNK2019: unresolved external symbol __ftol2

I´ve proved to put the next lines of code in my c file:

#if (_MSC_VER >= 1300) && (WINVER < 0x0500)
//VC7 or later, building with pre-VC7 runtime libraries
extern "C" long _ftol( double ); //defined by VC6 C libs
extern "C" long _ftol2( double dblSource ) { return _ftol( dblSource );
}
#endif

but now the problem is the string "C", it isn´t recognized by the
compiler maybe. I´ve installed the microsotf c++ 2003 toolkit.
I don´t understand.

--
alixia
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #3
Hi alixia!
#if (_MSC_VER >= 1300) && (WINVER < 0x0500)
//VC7 or later, building with pre-VC7 runtime libraries
extern "C" long _ftol( double ); //defined by VC6 C libs
extern "C" long _ftol2( double dblSource ) { return _ftol( dblSource );
}
#endif

but now the problem is the string "C", it isn´t recognized by the
compiler maybe. I´ve installed the microsotf c++ 2003 toolkit.
I don´t understand.


Why do you query WINVER?
If it is only depended on the MS-VC-Version you should only query _MSC_VER!

But to comply with C-files, you should change it to:
#if _MSC_VER >= 1300
//VC7 or later, building with pre-VC7 runtime libraries
#ifdef __cplusplus
extern "C" {
#endif
long _ftol( double ); //defined by VC6 C libs
long _ftol2( double dblSource ) { return _ftol( dblSource );
#ifdef __cplusplus
}
#endif
#endif
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2552
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current one is a permission error. The project is a VC++ Web Service. It works fine when the service is hosted on the old W2K dev machine, but on the new XP machine I get a permission error when the service tries to open a text file on the Windows...
2
2777
by: SHC | last post by:
Hi all, I read the Microsoft KB Q815658 "How to read the XML data from a file using Visual C++ .NET" and tried to follow the steps of executing its source code in my VC++ .NET 2003 under Console Application (.NET). I lauched a project 'Q815658XMLRead' (see the attached .cpp file below) and did the "Build" and I got the following 2 errors: c:\Documents and Settings\Scott H. Chang\My Documents\Visual Studio...
10
9529
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the errors below. Everything compiles fine and all the types are defined, it appears that the template type itga::order_collection::iterator is causing the trouble. Gary.
4
2735
by: Ney André de Mello Zunino | last post by:
Hello. With the freely available Visual C++ Toolkit 2003, is it possible to build applications with the Visual Studio project file that are distributed with them? Can CL.EXE handle those files? What else is needed? FWIW, I currently find myself unable to build two open source projetcs, namely LAME and SDL . Has anybody ever managed to do it with the VC++ Toolkit? Are there any tips that could be shared?
14
2837
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant number) linking (and sometimes compiling) becomes immensely slow, and task manager shows that link.exe (or cl.exe) is barely using any processor time, but an awful lot of RAM (around 150-200MB). I'm going to keep an eye on page faults since I can't...
0
1108
by: bb | last post by:
I am running VS.NET 2003 VC71 I have a vs.net solution file which has two vc++ project files When i compile from within the VS.NET IDE eveything compiles fine When i try and compile from the command line using the following syntax i get the error linking generated for each project in the solution "%VSDIR%" "%APPDIR%\App.sln" /rebuild Debug /out build.log
2
1504
by: zorro | last post by:
Hi, I use the Visual C++ .NET 2003 Standard Edition which doesn't include an optimizing compiler. But Microsoft released the VC++ 2003 Toolkit (http://msdn.microsoft.com/visualc/vctoolkit2003/) which provides an optimizing compiler. Is it possible to replace the original "Standard" compiler with this one ? How could I do this ?
0
265
by: 3doutpost | last post by:
(apologies for the new thread - for some reason google news doesn't give me the option to reply to an earlier vcbuild.exe thread) I'm trying to build a C++ project that was originally created in MSVC.NET 7.1 by using MS C++ Toolkit 2003 and the vcbuild.exe helper app. I did have MSVC.NET installed already and went ahead and installed MC C++ Toolkit 2003. The 4 examples compiled okay.
1
1547
by: pikulsky | last post by:
There is a managed C++ class (ManagedClass) defined in one library (TestMCpp.dll), it has a method (funcTemplate) with template native type (NativeTemplate<int>). This library is built without any errors. There is another managed C++ project (UseTestMCpp) which uses the ManagedClass class: it does have included header file with native type definitions but it does not help in case with template parameters. The explicit instantiation of...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.