31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Change the file autoexec.bat as follows:<br />

If a variable PATH, INCLUDE, or LIB is already set, append the appropriate<br />

<strong>LEDA</strong> directory , respectively \incl.<br />

Otherwise add a corresponding line to autoexec.bat:<br />

set PATH=<br />

set INCLUDE=\incl<br />

set LIB=<br />

2. Restart Windows 95/98 for the change to take effect.<br />

After these procedures, it suffices to call VCVARS32.BAT at the command prompt.<br />

In both cases the <strong>LEDA</strong> paths are automatically appended to the compiler paths.<br />

(c) Compiling and Linking Application Programs:<br />

After setting the environment variables, you can use the <strong>LEDA</strong> libraries as follows<br />

to compile and link programs.<br />

Programs not using GeoWin:<br />

cl -D<strong>LEDA</strong>_DLL -Tp prog.c <br />

Programs using GeoWin:<br />

cl -D<strong>LEDA</strong>_DLL -Tp prog.c <br />

Possible values for are ”-ML”, ”-MLd”, ”-MD”, ”-MDd”, ”-MT”, and ”-<br />

MTd”. You have to use the <strong>LEDA</strong> libraries that correspond to the chosen ,<br />

e.g., with option ”-MD” you must use leda md.lib and libGeoW md.lib. Using<br />

another set of libraries with ”-MD” could lead to serious linker errors.<br />

Remark: <strong>The</strong> option -Tp is necessary if the C++ source code files have extension<br />

.c. If your files have extension .cpp this option is not necessary.<br />

Example programs and demos<br />

<strong>The</strong> source code of all example and demo programs can be found in the directory<br />

\test and \demo. Goto and type make test or make demo to compile<br />

and link all test or demo programs, respectively.<br />

A.11 Static Libraries for MS Visual C++ .NET<br />

This section describes the installation and usage of static libraries of <strong>LEDA</strong> with Microsoft<br />

Visual C++ .NET.<br />

Remark: This section describes the situation in a GUI package of <strong>LEDA</strong>. If you have<br />

the geometry, graph, or basic package only the corresponding libraries are provided.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!