Compile code with LEDA 6.3 Free Edition in Ubuntu 12.04

Created: 2013-10-16   Category: linux   Print this articleBack to Home


LEDA is AlgoSol’s C++ class library for efficient data types and algorithms. LEDA provides algorithmic in-depth knowledge in the field of graph and network problems, geometric computations, combinatorial optimization and other. It offers a huge number of relevant algorithms in an easy-to-use and efficient form. The free edition of LEDA can be found here. This post describes how to compile code with LEDA 6.3 Free Edition in Ubuntu 12.04.

To compile a file example.cpp with the LEDA directory extracted to the $HOME directory, in terminal, type

g++ -I$LEDAROOT/incl -L$LEDAROOT example.cpp -lleda -lX11 -lm -o example

Valid CSS! Valid HTML 4.01 Transitional Back to Top
Powered by Jekyll
The content on this site is shared under a CC BY-SA 4.0 license, unless otherwise noted