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.

A.5 Source Code on Windows with Borland C++<br />

Source Code Configuration for Borland C++<br />

1. Setting the Environment Variables for Borland C++:<br />

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

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

c:\programs\borland\bcc551\bin.<br />

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

which sets the compiler options for the include and lib paths to the correct<br />

directories. On the authors machine this means adding the lines<br />

-I"c:\programs\borland\bcc551\include"<br />

-L"c:\programs\borland\bcc551\lib"<br />

to bcc32.cfg.<br />

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

which sets the linker options for the and lib path to the correct directory.<br />

On the authors machine this means adding the line<br />

-L"c:\programs\borland\bcc551\lib"<br />

to ilink32.cfg.<br />

2. Go to the <strong>LEDA</strong> main directory.<br />

3. Type: lconfig bcc [dll] [ d ]<br />

<strong>LEDA</strong> Compilation with Borland C++<br />

Type make lib for building the object code libraries<br />

static: libL.lib basic library<br />

libG.lib graph library<br />

libP.lib d2-geo library<br />

libD3.lib d3-geo library<br />

libGeoW.lib GeoWin library<br />

libW.lib window library<br />

dynamic:<br />

leda.dll, leda.lib<br />

libgeow.lib<br />

Remarks: GeoWin is currently not available as a DLL.<br />

Now follow the instructions given in the corresponding section for the Windows object<br />

code package (Section WinObjectCodePackage ff.).<br />

A.6 Compiling <strong>LEDA</strong> for Multithreading<br />

<strong>The</strong>re are three flags which can be set at the end of \incl\<strong>LEDA</strong>\system.h:

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

Saved successfully!

Ooh no, something went wrong!