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.

Preparations<br />

To install <strong>LEDA</strong> you only need to execute the <strong>LEDA</strong> distribution file<br />

<strong>LEDA</strong>---win32-.exe. During setup you can choose<br />

the name of the <strong>LEDA</strong> root directory and the parts of <strong>LEDA</strong> you want to install.<br />

<strong>The</strong>n you have to set the environment variable <strong>LEDA</strong>ROOT as follows:<br />

1. Windows NT/2000/XP: On these platforms <strong>LEDA</strong>RROOT is set automatically to the<br />

directory where you installed <strong>LEDA</strong> by the setup program.<br />

2. Windows 95/98:<br />

(a) Add the line set <strong>LEDA</strong>ROOT= to the file ”autoexec.bat” where <br />

is the root directory of your <strong>LEDA</strong> installation, e.g., D:\<strong>LEDA</strong>-4.4\<br />

(b) Restart Windows 95/98 for the change to take effect.<br />

Files and Directories<br />

To compile and link your programs with <strong>LEDA</strong>, the <strong>LEDA</strong> main directory should contain<br />

at least the following files and subdirectories:<br />

Readme.txt<br />

Install\win32 bcc dll.txt<br />

incl\<br />

man html\<br />

Readme File<br />

txt–version of this section<br />

the <strong>LEDA</strong> include directory<br />

HTML version of the <strong>LEDA</strong> user manual<br />

and the following dll/library set<br />

• leda.dll, leda.lib, libGeoW.lib<br />

Note: A DLL of GeoWin is currently not available.<br />

Compiling and Linking Application Programs<br />

(a) Setting the Environment Variables for Borland C++:<br />

• Make sure that that the directory containing bcc32.exe is contained in your<br />

path. bcc32.exe is located in the \bin subdirectory of your compiler (, e.g.,<br />

c:\programs\borland\cbuilder6\bin)<br />

• Make sure that there is a file bcc32.cfg in the \bin subdirectory of your<br />

compiler which sets the compiler options for the Include and Lib paths (-I and<br />

-L switches of compiler). On the authors machine the following lines had to be<br />

added to bcc32.cfg:<br />

-I"c:\programs\Borland\cbuilder6\include"<br />

-L"c:\programs\Borland\cbuilder6\lib"

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

Saved successfully!

Ooh no, something went wrong!