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.

<strong>LEDA</strong> MEMORY STD: If this is set, the (standard) <strong>LEDA</strong> memory manager, which is not<br />

thread–safe, is used.<br />

<strong>LEDA</strong> MEMORY SYS: If this is set, the system memory management is used (new and delete)<br />

instead of the <strong>LEDA</strong> manager.<br />

<strong>LEDA</strong> MEMORY MT: If this is set, the multithreading <strong>LEDA</strong> memory management is used.<br />

One of these flags must be set. If <strong>LEDA</strong> MULTI THREAD is not defined, <strong>LEDA</strong> MEMORY STD is<br />

used by default. Otherwise <strong>LEDA</strong> MEMORY SYS is the default and <strong>LEDA</strong> MEMORY MT can be<br />

used alternatively.<br />

You have to edit \thread.h in order to include the right thread package<br />

(win32.h, posix.h, solaris.h, or cps.h).<br />

A.7 Usage of Header Files<br />

<strong>LEDA</strong> data types and algorithms can be used in any C++ program as described in this<br />

manual (for the general layout of a manual page please see Chapter <strong>LEDA</strong> <strong>Manual</strong> Page).<br />

<strong>The</strong> specifications (class declarations) are contained in header files. To use a specific data<br />

type its header file has to be included into the program. In general the header file for<br />

data type xyz is .<br />

A.8 Object Code on UNIX<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.<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/unix.txt<br />

incl/<br />

libL.a (libL.so)<br />

libG.a (libG.so)<br />

libP.a (libP.so)<br />

libD3.a (libD3.so)<br />

libW.a (libW.so)<br />

libGeoW.a (libGeoW.so)<br />

Readme File<br />

txt–version of this section<br />

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

basic library<br />

graph library<br />

plane geometry library<br />

3D geometry library<br />

window library<br />

GeoWin library<br />

Static libraries have extension .a. If shared libraries are provided they have extension<br />

.so.

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

Saved successfully!

Ooh no, something went wrong!