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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 lib.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 library set<br />

• libl.lib, libg.lib, libp.lib, libw.lib, libgeow.lib, libd3.lib<br />

Compiling and Linking Application Programs in a DOS-Box<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"<br />

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

compiler which sets the linker option for the Lib path. <strong>The</strong> author had to add<br />

the following line to ilink32.cfg :<br />

-L"c:\programs\Borland\cbuilder6\lib"<br />

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

Now you can use the <strong>LEDA</strong> libraries as follows to compile and link your application<br />

programs.<br />

We use to indicate the root directory of your <strong>LEDA</strong> installation, e.g.,<br />

c:\<strong>LEDA</strong>-4.4\.<br />

Programs using basic data types:<br />

bcc32 -P -I\incl -L prog.c libl.lib

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

Saved successfully!

Ooh no, something went wrong!