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.

(13) Choose ”Directories”<br />

(14) Choose ”Include Files” in ”Show Directories for:” and add the directory<br />

\incl containing the <strong>LEDA</strong> include files (Double click on the small rectangle<br />

in ”Directories”, enter \incl, or click on the small grey rectangle on<br />

the right and choose the correct directory.)<br />

(15) Choose ”Library Files” in ”Show Directories for:” and add the directory <br />

containing the <strong>LEDA</strong> libraries.<br />

(16) Click ”OK” to leave the ”Options”<br />

(17) In the ”Build” menu click on ”Build prog.exe” or ”Rebuild All” to compile your<br />

program.<br />

(18) 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 />

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\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

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

Saved successfully!

Ooh no, something went wrong!