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.

• 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=<br />

2. Restart Windows 95/98 for the change to take effect.<br />

After these procedures, it suffices to call VCVARS32.BAT at the command prompt.<br />

In both cases the <strong>LEDA</strong> paths are automatically appended to the compiler paths.<br />

(c) Compiling and Linking Application Programs:<br />

After setting the environment variables, you can use the <strong>LEDA</strong> libraries as follows<br />

to compile and link programs.<br />

Programs using basic data types:<br />

cl -Tp prog.c <br />

Programs using graph data types:<br />

cl -Tp prog.c <br />

Programs using geometric data types:<br />

cl -Tp prog.c <br />

Programs using three-dimensional data types:<br />

cl -Tp prog.c <br />

Programs using graphics data types:<br />

cl -Tp prog.c \<br />

wsock32.lib user32.lib gdi32.lib comdlg32.lib shell32.lib advapi32.lib<br />

Programs using GeoWin:<br />

cl -Tp prog.c \<br />

wsock32.lib user32.lib gdi32.lib\<br />

comdlg32.lib shell32.lib advapi32.lib

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

Saved successfully!

Ooh no, something went wrong!