Chilkat C/C++ Library Downloads
for MinGW-w64 and TDM-GCC
(Qt and CodeBlocks on Windows would use these libs)
The downloads on this page are the full-versions.
Chilkat libraries/components are fully functional for 30-day evaluations.
Getting Started: Compiling and Linking
TDM-GCC Downloads
Compiling and Linking
// Simple C++ Example #include <stdio.h> #include "include/CkZip.h" void ShowZipVersion(void) { CkZip zip; printf("Zip version: %s",zip.version()); } int main(int argc, const char* argv[]) { ShowZipVersion(); return 0; }
The -Wl,--enable-auto-import options may be required when linking. Also, link with libcrypt32.a, libws2_32.a, and libdnsapi.a as shown below:
g++ -Wl,--enable-auto-import linkSample.cpp -o"linkSample.exe" -L. -lchilkat-9.5.0 -L/MinGW/lib -lcrypt32 -lws2_32 -ldnsapi
- If compiling and linking a "C" program, use "gcc" to compile to produce a .o object (using the -c compiler option), and then use g++ to link with the Chilkat libraries. Chilkat requires the C++ runtime libs to be linked, and this is achieved by linking using g++.
- The download contains sample scripts (c_sampleBuild.sh and linkSample.sh) for building a C and C++ tests. Before running, modify the directory path used in the "-L" option to the correct paths based on your installation.
Release Notes
The release notes are located on the Chilkat blog.
Unicode Support
The Chilkat C++ libraries support Unicode in the form of utf-8 multibyte character strings. For more information see these pages:
- Using Unicode String Literals
- Using ANSI or utf-8 with Chilkat C++ "const char *" arguments.
- C++ Examples for Unicode, utf-8, and ANSI
Misdiagnosed Memory Leaks
C++ programmers often misdiagnose memory leaks with Chilkat. Please read the information here to understand the reason: Misdiagnosed C++ Memory Leaks