Hardware and software used:


My Setup
How I did the setup of the Glide SDK on my machine:
  • I manually copied the glide .h files into the watcom include directory, \watcom\h
  • I copied the glide .lib files into the watcom library directory, \watcom\lib386\dos
  • I also copied tlib.h into \watcom\h in case I would use tlib.c
That's all.

My favorite DOS editor is TurboC 3.0 from Borland.
I do all my editing and compilations within TurboC.
(TurboC allows to use an external executable to compile/link.
For those interested, I found TASM2MSG works best for Transfer to Watcom.) 

When I want to link several .obj files into an .exe, I exit TurboC and run a batch file:
wlink f [files] op stack=512000 n myexe l clib3r,glide2x
where [files] is the list of .obj files, separated by commas.
clib3r is the register-based library, you can use the stack-based one if you prefer. 

To compile and link all in one go, I would use:
wcl386 [files] -k512000 glide2x.lib
where [files] is the list of .c files. 

If I use any glide tl_???? functions, I include tlib.c (the compiled tlib.obj, actually) in the list of .obj to link.



My favorite Windows editor is Visual C from Microsoft.
For Visual C, I did the same manual copying of the .h and .lib files.
Important: I put #define __MSC__ in the \MSVC\include\glide.h file. It doesn't matter where one puts it, you can put it in your program, or define it in the Project Settings (best method), but it *must* be defined somewhere!

Also, with a VC project one has to add the glide2x.lib library in the list of files to link with.


Last updated: Mar 97
Back
1