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.OS2
< prev
next >
Wrap
Text File
|
1996-09-03
|
4KB
|
99 lines
*******************************************************************************
* *
* LEDA for OS/2 *
* *
* (WCC / ICC / EMX) *
* *
*******************************************************************************
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.os2 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.cmd configuration command
LEDA has been successfully compiled unter OS/2 with Watcom C++ (wcc),
IBM CSet++ (icc) and EMX (g++).
1. Configure Makefiles
----------------------
Go to the <LEDA> directory and call the "lconfig.cmd" batch file
to configure the make files to work with your compiler:
watcom: lconfig wcc
ibm: lconfig icc
emx: lconfig emx
2. Compiling the Libraries
--------------------------
You have to make the following libraries:
libl.lib basic library
libg.lib graph library
libp.lib plane library
libw.lib graphics library
Go to <LEDA> and call the batch file "make_lib".
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 Application Programs
---------------------------------------------
Use the libraries as follows to compile and link programs
(see section 1.9 of the user manual):
For programs using basic data types (<LEDA>\prog\basic):
wcl386 -cc++ -zq -x -k32k prog.c libl.lib
icc -Tdp prog.c libl.lib
gcc -xc++ prog.c -lL -lm -liostream
For programs using graph data types (<LEDA>\prog\graph):
wcl386 -cc++ -zq -x -k32k prog.c libg.lib libl.lib
icc -Tdp prog.c libg.lib libl.lib
gcc -xc++ prog.c -lG -lL -lm -liostream
For programs using geometric data types (<LEDA>\prog\plane):
wcl386 -cc++ -zq -x -k32k prog.c libp.lib libg.lib libl.lib
icc -Tdp prog.c libp.lib libg.lib libl.lib
gcc -xc++ prog.c -lP -lG -lL -lm -liostream
For programs using geometric data types and windows (<LEDA>\prog\demo):
wcl386 -cc++ -zq -x -k32k prog.c libw.lib libp.lib libg.lib libl.lib
rc leda.res prog.exe
icc -Tdp prog.c libw.lib libp.lib libg.lib libl.lib
rc leda.res prog.exe
gcc -o prog.pm -xc++ prog.c -lW -lP -lG -lL -lm -liostream
emxbind -bpq -rleda.res /emx/bin/emxl prog.pm