|
|
|
|
APTL is specifically designed to provide a cross-platform API of
advanced programming tools for both Linux and Win32 targets. Standard
elements such as thread control and embedding resources within
executable files are provided for both platforms in simple to use
C++ classes.
|
|
|
Linux hosts
|
|
The Linux distribution of APTL provides libraries built with the GNU C++
compiler for both Linux and Win32 targets on Pentium® compatible
hardware. Using the MinGW headers and
library components, a Linux PC
can make an excellent compilation plaform for both native Linux ELF
binaries as well as Microsoft® Windows® 32-bit PE binaries.
The Linux distribution includes a pkg-config configuration
file that simplifies compilation. To compile a simple one-file code,
use the following syntax:
|
|
g++ `pkg-config --cflags SCTL` -o test1 test1.cpp
|
|
|
Operating system and CPU architecture specifications can be specified
using the --define-variable option. For example,
compiling a Win32 PE binary can be accomplished by the following command:
|
|
g++ -b i686-pc-mingw32 -c \
`pkg-config --cflags --define-variable=os=win32 APTL` test2.cpp
g++ -b i686-pc-mingw32 -o test2 test2.o \
`pkg-config --libs --define-variable=os=win32 APTL`
|
|
|
assuming that the MinGW binutils and GNU C++ compiler were built using
the i686-pc-mingw32 target.
|
|
|
Windows hosts
|
|
The Windows distribution of APTL provides the accompanying header
files along with a statically-linked library for Pentium®
compatible CPUs. To install, unzip the compressed package
(files installed under the 'bluesail' directory). Usage is as simple
as including the <INSTALL_PATH>/bluesail/include
directory and adding <INSTALL_PATH>/bluesail/lib to
the library path.
Since APTL uses partial template specializations extensively, APTL for
Microsoft® Visual Studio® C++ compiler version 7.0 or higher.
|
|
|
top of page
|
|