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.3 Source Code on UNIX Platforms<br />

Source Code Configuration on UNIX<br />

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

2. Type: lconfig [static | shared]<br />

where is the name (or command) of your C++ compiler and the optional second<br />

parameter defines the kind of libraries to be generated. Note that in the current release<br />

shared libraries can be made only under SunOS 5.x (Solaris), Linux, and IRIX.<br />

Examples: lconfig CC, lconfig g++, lconfig sunpro shared<br />

lconfig without arguments prints a list of known compilers.<br />

If your compiler is not in the list you might have to edit the <br />

header file.<br />

<strong>LEDA</strong> Compilation on UNIX<br />

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

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

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

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

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

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

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

main library<br />

graph library<br />

d2-geo library<br />

d3-geo library<br />

window library<br />

GeoWin library<br />

(*.so if shared libraries are used)<br />

Now follow the instructions given in Section UnixObjectCodePackage.<br />

A.4 Source Code on Windows with MS Visual C++<br />

Source Code Configuration for MS Visual C++<br />

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

<strong>The</strong> compiler CL.EXE and the linker LINK.EXE require that the environment variables<br />

PATH, INCLUDE, and LIB have been set properly.<br />

When Visual C++ was installed, setup created a batch file, VCVARS32.BAT for MS<br />

Visual Studio 6 and VSVARS32.BAT for MS Visual C++ .NET, containing the commands<br />

to modify PATH, LIB, and INCLUDE. Run VCVARS32.BAT (VSVARS32.BAT)<br />

before you compile <strong>LEDA</strong> as follows.<br />

(a) At the command prompt, change to the \bin subdirectory of your Visual C++<br />

installation (,e.g., c:\programs\microsoft visual studio\vc98\bin).

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

Saved successfully!

Ooh no, something went wrong!