Chilkat C/C++ Libraries for PowerLinux
Chilkat Reference Documentation
Chilkat Sample Code
Chilkat Release Notes
Install the binary distribution by extracting the files from the compressed archive.
The following example is for the POWER8 build:
tar xvfz chilkat-9.5.0-power8-linux.tar.gz
This will create a 'chilkat-9.5.0-power8-linux' sub-directory containing the Chilkat C++ binary distribution.
Linking with the Chilkat Shared Library
The Chilkat shared library is located in the "lib" subdirectory. It is named libchilkat-9.5.0.so. To link with the shared library, use the "-l" option. For example:
gcc -o my_application my_application.o -lchilkat-9.5.0 -lresolv -lpthread
In order to find a shared or static library, the dynamic linker looks in certain directories to find the library. Generally it will look in /usr/lib and /lib. Your system may also be configured to look in other directories (with ldconfig). If you have an environment variable called LD_LIBRARY_PATH it will check the directories listed there first (paths should be separated by colons).
It is also possible to add an additional directory to the library search path with the -L option. If -L is used, then it is not necessary to set LD_LIBRARY_PATH.
gcc -o my_app my_app.o -L/home/joe/chilkat-9.5.0-power8-linux/lib -lchilkat-9.5.0 -lresolv -lpthread
* The "-lresolv" and "-lpthread" are for extra system libraries that will likely be needed. These are for DNS name resolution and POSIX threading.
* Note: If both the static library (.a) and shared library (.so) are in the same directory, the linker will select the shared library.