Svein
Joined: 14 Mar 2007 Posts: 94 Location: Ålesund, Norway
|
Posted: Wed 3 Mar 10:12:13 2010 Post subject: Side by side CDP linking |
|
|
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.
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. |
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 |
|