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.

• Copy leda .dll to the bin\ subdirectory of your compiler or the directory<br />

containing ”prog.exe”.<br />

• Alternatively, you can set the environment variable PATH to the directory containing<br />

leda .dll as described below.<br />

(19) In the ”Build” menu click on ”Execute prog.exe” to execute your program.<br />

Remark: If your C++ source code files has extension .c, you need to add the option ”/Tp”<br />

in ”Project Options” (Step (9)), otherwise you will get a number of compiler errors.<br />

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

To add <strong>LEDA</strong> to an existing Project in Microsoft Visual Studio 6, 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++:<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, containing<br />

commands to modify PATH, LIB, and INCLUDE. Run VCVARS32.BAT at the command<br />

prompt before you compile your application program. VCVARS32.BAT is located in<br />

the \bin subdirectory of your compiler installation, e.g., c:\programs\microsoft<br />

visual studio 6\vc98\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:

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

Saved successfully!

Ooh no, something went wrong!