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.

<strong>The</strong> default value is ”/MLd”, alternatives are ”/ML”, ”/MD”, ”/MDd”, ”/MT”, and<br />

”/MTd”. Notice that you have to use the <strong>LEDA</strong> libraries that correspond to the chosen<br />

flag, e.g., with option ”/MD” you must use leda md.lib and libGeoW md.lib. Using<br />

another set of libraries with ”/MD” could lead to serious linker errors.<br />

Examples of workspaces can be found in the directory \demo\msc 70 workspaces.<br />

To add <strong>LEDA</strong> to an existing Project in Microsoft Visual C++ .NET, start the Microsoft<br />

Visual Studio with your project and follow Steps (8)–(16) above.<br />

Compiling and Linking Application Programs in a DOS-Box<br />

(a) Setting the Environment Variables for Visual C++ .NET:<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++ .NET was installed, setup created a batch file, VSVARS32.BAT,<br />

containing commands to modify PATH, LIB, and INCLUDE. Run VSVARS32.BAT<br />

at the command prompt before you compile your application program.<br />

VSVARS32.BAT is located in the \bin subdirectory of your compiler installation,<br />

e.g., c:\programs\microsoft visual studio .NET\Vc7\bin.<br />

To compile programs together with <strong>LEDA</strong>, the environment variables PATH, LIB,<br />

and INCLUDE must additionally contain the corresponding <strong>LEDA</strong> directories.<br />

(b) Setting Environment Variables for <strong>LEDA</strong>:<br />

(i) Windows NT/2000/XP:<br />

1. In the ”Start” menu, point to ”Settings”, then click ”Control Panel”.<br />

2. In the ”Control Panel”, double click ”System”.<br />

3. In the System Properties dialog box, click the Environment tab (for NT),<br />

respectively the Extended tab and then on ”Environment Variables” (for<br />

2000/XP).<br />

If a user variable PATH, LIB, or INCLUDE already exists, extend the current<br />

value as follows:<br />

• extend PATH by <br />

• extend INCLUDE by \incl<br />

• extend LIB by <br />

Otherwise add new a user variable PATH, INCLUDE, or LIB with value<br />

, respectively \incl.<br />

(ii) Windows 95/98:<br />

1. Change the file autoexec.bat as follows:<br />

If a variable PATH, INCLUDE, or LIB is already set, append the appropriate<br />

<strong>LEDA</strong> directory , respectively \incl.<br />

Otherwise add a corresponding line to autoexec.bat:<br />

set PATH=<br />

set INCLUDE=\incl<br />

set LIB=

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

Saved successfully!

Ooh no, something went wrong!