Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Linkage Problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Linkage Problems

 Post Reply Post Reply
Author
Message
denczek View Drop Down
Newbie
Newbie


Joined: 06 August 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote denczek Quote  Post ReplyReply Direct Link To This Post Topic: Linkage Problems
    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...
 
 
Back to Top
denczek View Drop Down
Newbie
Newbie


Joined: 06 August 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote denczek Quote  Post ReplyReply Direct Link To This Post 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)" (?Instance@CXTPColorManager@@CAAAV1@XZ) already defined in ToolkitPro1042vc71DSD.lib(XTPColorManager.obj)
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.