Print Page | Close Window

Linkage Problems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6334
Printed Date: 12 November 2025 at 5:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Linkage Problems
Posted By: denczek
Subject: Linkage Problems
Date Posted: 06 February 2007 at 2:14pm
We are attempting to migrate from the XTreme Toolkit 4.1 to the XTreme Toolkit Pro 10.4.2.
 
We are trying to utilize the dynamic CRT library with static linkage to the XTreme Toolkit Pro using ToolkitPro1042vc71DS.lib (release) and ToolkitPro1042vc71DSD.lib (debug).
 
The first thing noticed besides the linker errors is that the XTreme libraries use the __cdecl calling convention while our applications use the __stdcall calling convention.  Trying to recompile the XTreme Toolkit Pro libraries using the __stdcall calling convention fails.
 
The second, and more concerning issue, is that we are unable to perform a successful linkage with the new libraries.  We get LNK2001 errors in release mode and LNK2005 errors in debug mode. 
 
We believe we are using the correct runtime libraries by ignoring (libc.lib;libcmt.lib;msvcrt.lib;libcd.lib;libcmtd.lib) for debug builds and ignorming (libc.lib;libcmt.lib;libcd.lib;libcmtd.lib;msvcrtd.lib) for release builds.
 
Any help is greatly appreciated.
 
Thanks greatly...
 
 



Replies:
Posted By: denczek
Date Posted: 06 February 2007 at 2:43pm
Here's an example of one of the many linker errors in debug mode:
 
... error LNK2005: "private: static class CXTPColorManager & __cdecl CXTPColorManager::Instance(void)" ( mailto:?Instance@CXTPColorManager@@CAAAV1@XZ - ?Instance@CXTPColorManager@@CAAAV1@XZ ) already defined in ToolkitPro1042vc71DSD.lib(XTPColorManager.obj)


Posted By: Oleg
Date Posted: 07 February 2007 at 1:16am
Hi, message "already defined in ToolkitPro1042vc71DSD" means that you somehow include this file twice. May be you added this file directly to your application?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net