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.

When using graphics on Solaris systems you might have to link with the system<br />

socket library and the network services library as well:<br />

CC (g++)<br />

... -lW -lP -lG -lL -lX11 -lsocket -lnsl -lm<br />

Remark: <strong>The</strong> libraries must be given in the above order.<br />

3. Compile and link simultaneously with<br />

CC (g++) -I$<strong>LEDA</strong>ROOT/incl -L$<strong>LEDA</strong>ROOT file.c <br />

You may want to ask your system administrator to install the header files and libraries in<br />

the system’s default directories. <strong>The</strong>n you no longer have to specify header and library<br />

search paths on the compiler command line.<br />

Example programs and demos<br />

<strong>The</strong> source code of all example and demo programs can be found in $<strong>LEDA</strong>ROOT/test<br />

and $<strong>LEDA</strong>ROOT/demo. Goto $<strong>LEDA</strong>ROOT/test or $<strong>LEDA</strong>ROOT/demo and type<br />

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

A.9 Static Libraries for MS Visual Studio 6<br />

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

Visual Studio 6.<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 />

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.

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

Saved successfully!

Ooh no, something went wrong!