CDP Forum Forum Index CDP Forum
NOTE: The forum is being replaced by support.icd.no
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Side by side CDP linking

 
Post new topic   Reply to topic    CDP Forum Forum Index -> Installation and configuration
View previous topic :: View next topic  
Author Message
Imbrondir



Joined: 07 Jun 2007
Posts: 44

PostPosted: Tue 2 Feb 14:12:25 2010    Post subject: Side by side CDP linking Reply with quote

Hey.

Is there any simple way of having multiple versions of CDP installed? As in both dynamic and static version of msvc++ 2005, or possibly also multiple versions of visual c++?
Back to top
View user's profile Send private message
Svein



Joined: 14 Mar 2007
Posts: 94
Location: Ålesund, Norway

PostPosted: Wed 3 Mar 10:12:13 2010    Post subject: Side by side CDP linking Reply with quote

To choose between multiple versions of CDP, set the CDPBase environment variable in a command prompt, and then start Visual Studio from the same prompt. The projects are set up to look for include files, libraries and tools relative to the CDPBase environment variable.

Idea The easiest way to to this is to create a .bat file, or several if you have different VS versions, for instance:

Create a CDP_Application\StartWithVS8.bat with this contents:

Code:
set CDPBase=D:\CDP2.3.1.14
call "%VS80COMNTOOLS%"vsvars32.bat
devenv CDP_Application.sln




To choose between dynamic and static versions of libraries, the recommended method is to create multiple configurations in Visual Studio and set up each to use the correct CDP libraries and run-time libraries.

For instance, add a Debug_Dynamic configuration to the CDP_Application project, and change its project properties to:
Code:
Linker/Input: CDP_Debug_Dynamic.lib (+more libs)
C++/Code Generation/Runtime library: Multi-threaded Debug DLL.


Exclamation All libraries must use the same run-time libraries, so the last setting must be done on ALL libraries that are linked in.
_________________
Svein Erling Linge, ICD
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CDP Forum Forum Index -> Installation and configuration All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group