What are LEDA and CGAL:
LEDA is a graph library and CGAL is a geometry library.
They can be used independently or combined.
Subscribe to the list firstname.lastname@example.org:
If you are interested in keeping up to date with the local
installation of LEDA or CGAL,
subscribe to the majordomo list ledacgal@cs by clicking
Mail sent to that list will be infrequent (limited to announcements of new versions).
LEDA and CGAL manual pages:
Compiler to use with LEDA and CGAL:
The libraries are compiled using g++ 3.2.2, so you have to use that
version of g++ as well. That compiler is the default one on Red Hat 9
% gcc -v
gcc version 3.2.2
To use LEDA:
- Here is a Makefile to compile a program simple.c that uses LEDA:
# must use g++ 3.2.2 (LEDA was compiled using that version)
LEDAROOT = /usr/local/LEDA/LEDA-4.4.1
LDFLAGS = -L$(LEDAROOT) -L/usr/X11R6/lib \
-lGeoW -lD3 -lW -lP -lG -lL -lX11 -lm
CFLAGS = -LANG:std -I$(LEDAROOT)/incl
$(CC) $< -o $@ $(LDFLAGS)
$(CC) -c $< $(CFLAGS)
To use CGAL (with GMP, GMPXX, LEDA, and Qt enabled):
- Set two environment variables. This is best done in your .tcshrc
(or equivalent for bash users):
setenv CGAL_LIB_DIR /usr/local/CGAL/CGAL-3.1/lib/i686_Linux-2.4.20-31.9_g++-3.2.2
setenv CGAL_MAKEFILE /usr/local/CGAL/CGAL-3.1/make/makefile_i686_Linux-2.4.20-31.9_g++-3.2.2
- Execute your .tcshrc:
- Then use a makefile that includes the cgal makefile.
Here is a Makefile to compile a program simple.c:
$(CGAL_CXX) -o $@ $< $(CGAL_WINDOW_LDFLAGS)
$(CGAL_CXX) $(CGAL_CXXFLAGS) -c $<
Department of Computing Science, University of Alberta
All rights reserved.