|
What are LEDA and CGAL:
Subscribe to the list ledacgal@cs.ualberta.ca:
LEDA and CGAL manual pages:
Compiler to use with LEDA and CGAL:
To use LEDA:
# -*-makefile-*-
# must use g++ 3.2.2 (LEDA was compiled using that version)
CC=g++
LEDAROOT = /usr/local/LEDA/LEDA-4.4.1
LDFLAGS = -L$(LEDAROOT) -L/usr/X11R6/lib \
-Wl,-R$(LEDAROOT):/usr/X11R6/lib \
-lGeoW -lD3 -lW -lP -lG -lL -lX11 -lm
CFLAGS = -LANG:std -I$(LEDAROOT)/incl
simple: simple.o
$(CC) $< -o $@ $(LDFLAGS)
.c.o:
$(CC) -c $< $(CFLAGS)
To use CGAL (with GMP, GMPXX, LEDA, and Qt enabled):
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
source ~/.tcshrc
# -*-makefile-*- include $(CGAL_MAKEFILE) simple: simple.o $(CGAL_CXX) -o $@ $< $(CGAL_WINDOW_LDFLAGS) .c.o: $(CGAL_CXX) $(CGAL_CXXFLAGS) -c $<