home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ledar34.zip
/
leda-r-3_4_tar
/
LEDA-3.4
/
INSTALL.W32
< prev
next >
Wrap
Text File
|
1996-09-03
|
4KB
|
110 lines
*******************************************************************************
* *
* LEDA Windows-NT, Windows-95, WIN32s *
* *
* (Borland C++ 5.x, MSVC++ 4.x and Watcom 10.x) *
* *
*******************************************************************************
In this file I use <LEDA> to denote the path name of the LEDA main
directory. It should contain the following files and subdirectories:
readme information about LEDA
install.w32 this file
changes (please read !) most recent changes
fixes bug fixes since last release
incl\ LEDA include directory
src\ LEDA source files
prog\ example programs
demo\ demo programs
Manual\ user manual
confdir\ configuration directory
lconfig.bat configuration command
LEDA has been successfully compiled under Windows-NT and Windows-95 with
Borland C++ 5.o (bcc) Watcom C++ 10.x (wcc) and Microsoft Visual 4.x (msc).
1. Configure Makefiles
----------------------
Go to the <LEDA> directory and call the "lconfig.bat" batch file
to configure the make files to work with your compiler and system:
borland: lconfig bcc [dll]
watcom : lconfig wcc [dll]
MSVC++ : lconfig msc [dll]
(type "lconfig" for a list of possible compilers/systems)
2. Compiling the Libraries
--------------------------
Go to <LEDA> and call the batch file "make_lib". This will
create the following libraries:
libl.lib basic library
libg.lib graph library
libp.lib plane library
libw.lib graphics library
3. Installation of Headers and Libraries
----------------------------------------
All LEDA header files are in the directory "<LEDA>\incl\leda". You
have to create a directory "leda" in the C++ default include directory
and copy all files and subdirectories from
"<LEDA>\incl\leda" to this directory.
Then move all libraries <LEDA>\lib*.lib to the C++ default library directory
4. Compiling and Linking Sample and Demo Programs
---------------------------------------------
Go to one of the <LEDA>\prog\... subdirectories and call
make (borland)
wmake -u (watcom)
nmake (microsoft)
5. Compiling and Linking Application Programs
---------------------------------------------
Use the libraries as follows to compile and link programs
(see section 1.9 of the user manual):
Programs using basic data types (\prog\[basic,dict]):
bcc32 -P prog.c libl.lib
wcl386 -cc++ -k128k prog.c libl.lib
cl -Tp prog.c libl.lib
Programs using graph data types (\prog\graph):
bcc32 -P prog.c libg.lib libl.lib
wcl386 -cc++ -k128k prog.c libg.lib libl.lib
cl -Tp prog.c libg.lib libL.lib
Programs using geometric data types (\prog\plane):
bcc32 -P prog.c libp.lib libg.lib libl.lib
wcl386 -cc++ -k128k prog.c libp.lib libg.lib libl.lib
cl -Tp prog.c libp.lib libg.lib libl.lib
Programs using geometric data types and windows (prog\[window,demo]):
bcc32 -P prog.c libw.lib libp.lib libg.lib libl.lib
wcl386 -cc++ -k128k prog.c libw.lib libp.lib libg.lib libl.lib
cl -Tp prog.c libw.lib libp.lib libg.lib libl.lib user32.lib gdi32.lib