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.

• libg .lib libl .lib<br />

for programs using graph data types<br />

• libp .lib libg .lib libl .lib<br />

for programs using geometric data types<br />

• libd3 .lib libp .lib libg .lib libl .lib<br />

wsock32.lib<br />

for programs using three-dimensional data types<br />

• libw .lib libp .lib libg .lib libl .lib<br />

wsock32.lib<br />

for programs using graphics data types<br />

• libgeow .lib libd3 .lib libw .lib libp .lib<br />

libg .lib libl .lib wsock32.lib<br />

for programs using GeoWin<br />

Alternatively, you can include in your program<br />

and the correct <strong>LEDA</strong> libraries are linked to your program automatically. If GeoWin<br />

is used you need to add " LINK GeoW" to the ”Preprocessor definitions” in Step (9).<br />

Notice that autolink static.h only works correctly for the GUI package of <strong>LEDA</strong>.<br />

(11) Click ”OK” to leave the ”Settings”<br />

(12) In the ”Tools” menu click on ”Options”<br />

(13) Click on ”Projects–¿VC++ 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 ¡Project¿ ” or ”Rebuild ¡Project¿” to compile<br />

your 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” (similar to Step (9)), otherwise you will get a number of compiler<br />

errors. (Click on ”C/C++” and ”Command Line”. Add /TP in ”Additional Options” and<br />

click ”Apply”.)<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.

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

Saved successfully!

Ooh no, something went wrong!