Chilkat C/C++ Libraries for Solaris v10/v11

GCC Downloads

v9.5.0.98 31-Mar-2024sha256: 3e927ccf5b306852ae99623ffc812b21667f9fca6a4eeb60b4fbcdce7d3c0af4
Chilkat C/C++ 64-bit x86 Libs built with GCC

v9.5.0.98 31-Mar-2024sha256: cb2451f2a1a6fa488306fe5e022995b7033a1d84cf14b946d4fe9b27fa035263
Chilkat C/C++ 32-bit x86 Libs built with GCC

Solaris Studio Downloads

Built with Solaris Studio 12.4

v9.5.0.98 31-Mar-2024sha256: 6d0a2c298ded3ef71a37c5a1ea12ef6868e2933ef8290ceed33e81232e2e2ba8
Chilkat C/C++ 64-bit x86 Libs built with Solaris Studio

v9.5.0.98 31-Mar-2024sha256: 35d6e501e03f3ca19c3c772b0f6f1d5619b6184900bbd35bb3493bdc53398625
Chilkat C/C++ 32-bit x86 Libs built with Solaris Studio

Chilkat Reference Documentation

Chilkat C++ Sample Code

Chilkat C Sample Code

Chilkat Blog

Chilkat Release Notes

Install the binary distribution by extracting the files from the compressed archive. For example:

(64-bit)
gzip -d chilkat-9.5.0-x86_64-solaris.tar.gz
tar -xf chilkat-9.5.0-x86_64-solaris.tar

(32-bit)
gzip -d chilkat-9.5.0-x86-solaris.tar.gz
tar -xf chilkat-9.5.0-x86-solaris.tar

This will create a 'chilkat-9.5.0-x86_64-solaris' sub-directory containing the Chilkat C++ binary distribution. Header (.h) files are located in the "include" subdirectory. The static and shared libraries are located in the "lib" subdirectory.

Compiling and Linking a 32-bit (Intel processor) Application using the Static Library

The following example demonstrates compiling and linking a C++ program using the 32-bit Chilkat static library.

#!/bin/bash -ev
/usr/sfw/bin/g++ -m32 -O3 -Werror -c -fmessage-length=0 "ChilkatTest.cpp"
/usr/sfw/bin/g++ -m32 ChilkatTest.o /home/myUser/lib32/libchilkat-9.5.0.a -lsocket -lnsl -lresolv -o ChilkatTest

Compiling and Linking a 64-bit (Intel processor) Application using the Static Library

The following example demonstrates compiling and linking a C++ program using the 64-bit Chilkat static library.

#!/bin/bash -ev
/usr/sfw/bin/g++ -m64 -O3 -Werror -c -fmessage-length=0 "ChilkatTest.cpp"
/usr/sfw/bin/g++ -m64 ChilkatTest.o /home/myUser/lib64/libchilkat-9.5.0.a -lsocket -lnsl -lresolv -o ChilkatTest

Compiling and Linking an Application using the Shared Library

The following example demonstrates compiling and linking a C++ program using the 32-bit Chilkat shared library. The 32-bit "libchilkat-9.5.0.so" shared library should be located in a directory listed in the LD_LIBRARY_PATH environment variable.

To compile and link a 64-bit application, use the "-m64" compiler option instead of "-m32".

#!/bin/bash -ev
/usr/sfw/bin/g++ -m32 -O3 -Werror -c -fmessage-length=0 "ChilkatTest.cpp"
/usr/sfw/bin/g++ -m32 ChilkatTest.o -lchilkat-9.5.0 -lsocket -lnsl -lresolv -o ChilkatTest

Setting the LD_LIBRARY_PATH search path

If using the .so shared library, the LD_LIBRARY_PATH may need to be set.

In the following shell commands, the <chilkat-path> denotes the full path to the chilkat-9.5.0-x86_64-solaris directory.

For Bourne Shell, K Shell or Bash, type:

LD_LIBRARY_PATH=<chilkat-path>/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

For C Shell, type:

setenv LD_LIBRARY_PATH "<chilkat-path>/lib:$LD_LIBRARY_PATH"