Next: Source Code on Windows Up: Technical Information Previous:
Source Code on UNIX
- 1.
- Setting 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.
When Visual C++ was installed, setup created a batch file,
VCVARS32.BAT for MS Visual Studio 6 and VSVARS32.BAT
for MS Visual C++ .NET,
containing the commands to modify PATH, LIB, and
INCLUDE. Run VCVARS32.BAT (VSVARS32.BAT) before you
compile LEDA as follows.
- (a)
- At the command prompt, change to the \bin subdirectory of
your Visual C++ installation ( ,e.g., c:\programs\microsoft
visual studio\vc98\bin).
- (b)
- Type VCVARS32 (VSVARS32).
- 2.
- Go to the LEDA main directory (at the command prompt used above).
- 3.
- Type: lconfig msc [dll] [ ml | mld | md | mdd | mt | mtd ]
Remark: When building an application with LEDA and MS Visual Studio 6 or
MS Visual C++ .NET, the LEDA library you use depends on the Microsoft C
runtime library
you intend to link with.
Your application code and LEDA 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.
Type make_lib for building the object code libraries
| static: |
libL.lib |
basic library |
| |
libG.lib |
graph library |
| |
libG2.lib |
semi-dynamic graph library |
| |
libP.lib |
d2-geo library |
| |
libD3.lib |
d3-geo library |
| |
libGeoW.lib |
GeoWin library |
| |
libW.lib |
window library |
| |
|
|
| dynamic: |
leda.dll, leda.lib |
|
| |
libgeow.lib |
|
Remarks: The semi-dynamic graph representation (libG2) is not available in
the DLL version. GeoWin is currently not available as a DLL.
Now follow the instructions given in the corresponding section for the Windows
object code package (Section WinObjectCodePackage
ff.).
Next: Source Code on Windows Up: Technical Information Previous:
Source Code on UNIX
© Copyright 1995-2002, Algorithmic Solutions Software GmbH. All rights reserved.
2002-10-16