Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

August 1, 2007

Choosing the Correct Chilkat .lib in Visual C++ 8.0

The download for the Chilkat C++ 8.0 libs include the following .libs:

ChilkatDbg.lib — for Multi-threaded Debug (/MTd)
ChilkatDbgDll.lib — for Multi-threaded Debug DLL (/MDd)
ChilkatRel.lib — for Multi-threaded (/MT)
ChilkatRelDll.lib — for Multi-threaded DLL (/MD)
ChilkatRelDll2.lib — for Multi-threaded DLL (/MD)

Your VC++ project should link against the lib that matches your Code Generation setting. VC++ 8.0 no longer has a "single threaded" code generation option, so the choices are between Debug/Release, and static/DLL. If your app uses a "DLL" code generation option, the .exe produced will have a dependency on the Visual C++ runtime. The exact version of the C++ runtime will need to be present on any computer where your EXE runs. If you choose the non-DLL libs, your EXE may be a little larger, but you won’t have the dependency.

Here’s a screenshot of the Code Generation options in VC++ 8.0 (i.e. Visual Studio 2005):

The ChilkatRelDll2.lib is a smaller .lib for Release/DLL cases where you are not using the self-extracting EXE features of the Chilkat Zip component. It can reduce the size of your EXE if you are using Zip (directly or indirectly) and you don’t need self-extracting functionality.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.