Chemical Descriptors Library: Building the CDL
Building the CDL

CDL code was written using standard C++. Boost libraries and large portions of CDL rely on partial template specializations which is a feature not currently supported by all compilers.

The next table shows the compilers and platform for which CDL has been compiled succesfully.

Platformgcc 3.xgcc 4.x
i686 Pass Pass
x86_64 Pass Pass

If your compiler/platform is not shown in the previous table, the best way to check if you can compile CDL is going to the boost regression page and checking the compilation status for the graph library.

Compiling the examples

Once you downloaded the file morpho.tar.gz from the SourceForge downloading area, uncompress and untar it.

To compile the examples found on

morpho/libraries/libs/cdl/examples
you will need to include the Standard Library, the boost libraries, and the source code of the CDL during the compilation call.

Client executables

For Unix systems, the CDL includes a set of executables that gives command-line functionality for much of the library.

To make use of the GNU's make utility to compile these executables, you will need the boost libraries on the morpho/libraries/ folder, so you either create a symlink there pointing to the root of the boost directory, or just place it there.

Then go to morpho/clients/ directory and type 'make'.

All executables which have their source code on the morpho/clients folder will be compiled using the gcc compiler.

After compilation, all binary executables will be put in morpho/clients/bin/

If you don't want to use the make facility, you can compile each executable individually. Remember to include the Standard, Boost and CDL libraries during the compilation call, so the linker will find them.



Copyright © Vladimir Sykora & Cyprotex Ltd 2006
SourceForge.net Logo