Next: Usage of Header Files
Up: Technical Information
Previous: System Requirements
  Contents
  Index
Compiling the Source Code Package
The LEDA/AGD main directory of the source code package should contain the
following files and subdirectories:
AGD/Readme.txt |
information about AGD |
AGD/ |
documentation for AGD |
Readme.txt |
information about LEDA |
CHANGES (please read !) |
most recent changes of LEDA |
FIXES |
bug fixes since last release of LEDA |
Install/ |
documentation for installation and usage of LEDA |
Manual/ |
sources for LEDA user manual |
man_html/ |
HTML version of LEDA user manual |
license.txt |
license text |
lconfig |
configuration command for unix |
lconfig.bat |
configuration command for windows |
Makefile |
make script |
confdir/ |
configuration directory |
incl/ |
include directory |
src/ |
source files |
test/ |
example and test programs |
demo/ |
demo programs |
demo_cout/ |
command line demo programs |
- Go to the LEDA/AGD main directory.
- Type: lconfig <cc> [static | shared]
where <cc> is the name (or command) of your C++ compiler
and the optional second parameter defines the kind of libraries
to be generated. Note that in the current release shared
libraries can be made only under SunOS 5.x (Solaris), Linux, and
IRIX.
Examples: lconfig CC, lconfig g++, lconfig
sunpro shared
lconfig without arguments prints a list of known compilers.
Type make for building the object code libraries
libAGD.a (libAGD.so) |
AGD library |
libL.a (libL.so) |
LEDA main library |
libG.a (libG.so) |
LEDA graph library |
libG2.a (libG2.so) |
LEDA semi-dynamic graph library |
libP.a (libP.so) |
LEDA d2-geo library |
libD3.a (libP.so) |
LEDA d3-geo library |
libW.a (libW.so) |
LEDA window library |
libGeoW.a (libGeoW.so) |
LEDA GeoWin library |
(*.so if shared libraries are used)
Now follow the instructions given in Section UnixObjectCodePackage.
- Set the Environment Variables for Visual C++:
The compiler CL.EXE and the linker LINK.EXE require that the environment
variables PATH, INCLUDE, and LIB have been set properly.
PATH must point to the
\bin subdirectory of your Visual
C++
installation, LIB must point to
\lib, and INCLUDE to
\include.
When you installed Visual C++, setup created a batch file,
VCVARS32.BAT,
containing the commands to modify the PATH, LIB, and INCLUDE environment
variables. Run VCVARS32.BAT before you compile at the command prompt.
To run VCVARS32.BAT:
- At the command prompt, change to the
\bin subdirectory of
your Visual C++ installation
(for instance c:
\programs
\microsoft developer
studio
\vc98
\bin ).
- Run VCVARS32.BAT by typing VCVARS32.
- Go to the LEDA/AGD main directory.
- Type: lconfig msc [dll] [ ml | mld | md | mdd | mt | mtd ]
Remark: When building an application with AGD and MS Visual
C++, the AGD library you use depends on which Microsoft C runtime
library
you intend to link with.
Your application code and AGD both must be linked to the same
Microsoft C runtime library; otherwise serious linker or runtime
errors may occur.
The Microsoft C runtime libraries are related to the compiler
options as follows
C Runtime Library |
Option |
LIBC.LIB |
-ML |
LIBCD.LIB |
-MLd |
LIBCMT.LIB |
-MT |
LIBCMTD.LIB |
-MTd |
MSVCRT.LIB |
-MD |
MSVCRTD.LIB |
-MDd |
In order to get the suitable Libs or DLL please choose the
corresponding option in the call of lconfig.
- Set the Environment Variables for Borland C++:
The compiler BCC32.EXE and the linker TLIB.EXE require that the environment
variables PATH, INCLUDE, and LIB have been set properly.
PATH must point to the
\bin subdirectory of your Borland
C++
installation, LIB must point to
\lib, and INCLUDE to
\include.
When you installed Borland C++, setup created a batch file, like
bor54.bat or bor551.bat,
containing the commands to modify the PATH, LIB, and INCLUDE environment
variables. Run the corresponding batch file before you compile at the
command prompt.
- Go to the LEDA/AGD main directory.
- Type: lconfig bcc [dll] [ d ]
Type make_lib for building the object code libraries
static: |
libAGD.lib |
AGD library |
|
libL.lib |
LEDA basic library |
|
libG.lib |
LEDA graph library |
|
libG2.lib |
LEDA semi-dynamic graph library |
|
libP.lib |
LEDA d2-geo library |
|
libD3.lib |
LEDA d3-geo library |
|
libGeoW.lib |
LEDA GeoWin library |
|
libW.lib |
LEDA window library |
|
|
|
dynamic: |
libAGD.lib |
|
|
leda.dll |
|
|
leda.lib |
|
|
libGeoW.lib |
|
Notice: AGD and GeoWin are currently not available as DLLs.
Now follow the instructions given in Section WinObjectCodePackage.
Subsections
Next: Usage of Header Files
Up: Technical Information
Previous: System Requirements
  Contents
  Index
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13