Contents Version de mai 97 A tutorial of Windom step by step ...
Programming guideline of WinDom

Compiling a WinDom Application

First utilisation

Before compiling your first WinDom application, you should install the library in your environmment.

Copy from the WinDom package:

windom\include\windom.h
and optionally :

windom\include\scancode.h
windom\include\av.h
in the include folder of your compiler. Then copy the library itself from the WinDom package :

in you lib folder of you compiler.

Notice Gcc 2.9 runs only with MiNT with an Unix file system hierarchy. For people using plain-TOS or MagiC, gcc 2.8.1 is a good choice and works fine. Windom is compiled in 32-bit mode.

In addition, WinDom requires absolutely GEMLIB pl43. The PCGEMLIB from Pure C is not supported. GEMLIB is available for Sozobon, Pure C and Gnu C. Retrieve it from http://arnaud.bercegeay.free.fr/gemlib/ or from http://http://sparemint.atariforge.net/sparemint/.

Compiling:

You just have to include the WinDom header file in your source files :

	#include <windom.h>
For compiling and linking with Sozobon and Gcc use the following makefile :

	# Makefile for compiling with Gcc or Sozobon
	CC = gcc  # for Gcc user
	CC = cc   # for Sozobon user
	CFLAGS = -O
	LDFLAGS = -lwindom -lmgem
	# eof
Pure C Project file :

	;; Pure C projet file (standard)
	windom.lib
	gem.lib
	pcstdlib.lib
	pctoslib.lib
Recompiling the library:

In the following part, '% ' designs the prompt of your shell interpreter.

So select your target and start the compilation.