Compile code with LEDA 6.3 Free Edition in Ubuntu 12.04

Created: October 16, 2013   Last Modified: February 15, 2020   Category: linux   Print this pageBack to Home

Summary

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

export LEDAROOT=$HOME/LEDA
export LD_LIBRARY_PATH=$LEDAROOT
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 Last Modified: February 15, 2020