aboutsummaryrefslogtreecommitdiff
path: root/zinclib.d/README
blob: 26df6193d6c2f9a8dd34764d718aaa1e65e6a778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Zinclib
=======

Zinclib is a library that is made to use TkZinc into C++ code. It is
a .o file that can be included directly into your executable.

Directory structure
-------------------

- src : contains C++ sources of zinclib

- tmp : will contain temporary compilation file and the final zinclib.o

- test : contains zinclib tests' sources

- doc : contains doxygen generated documentation and some examples of
  zinclib usage

- gen.pl is a file that have been used to generate some of the c++
source from TkZinc source.


Code
----

API documentation is available into the doc directory as doxygen
files. To use zinclib in your own code, the 'HOWTO' file explains the
basic on getting zinclib working.


Compilation with zinclib
------------------------

Before using zinclib into your application you need :

- tcl/tk >= 8.4
- TkZinc compiled for tcl usage and installed as done by IntuiKit's ThirdParty
- zinclib.o made as described into 'INSTALL'

zinclib is a .o file because this is the easiest way to compile and
use. This may change. To use a .o file just add it to your link
command during the compilation of your applicaion.

To link with zinklib you will need to add these option to your linker :

  -ltcl -ltk -lTkZinc zinclib.o


Notes :

- On some plateforms it can be -ltcl8.4 and -ltk8.4 if the linker
doesn't find tcl and tk.
- You need to have tkzinc compiled for TCL under the name libTkZinc.<ext>
in your library search path.