hitcounter
dpointer
Thursday, February 24, 2005
 
OpenWatcom (and STLport)

The Watcom family of compilers always amazed me. First time I faced it years ago, when I was about to help my uncle debugging his program (this was WATFOR 77). Although Fortran was never my soul, it has ever caught my attention thanks to its wonderful features. Years after, knowing that DOOM was built using Watcom C/C++ compiler, I could imagine what kind of luxury it would offer; due to the fact that I have to live either with Borland C++ and/on DJGPP only.

When Watcom compilers became open-source, I was very exciting to try it out. But only lately I had time to examine it in details. OpenWatcom - that is the new name - is available from www.openwatcom.org. Unfortunately AFAIK the IDE has been ported to Linux yet, and the Windows version still resembles the look-and-feel for legacy Windows 3.1 application. But it works, and it works well.

I almost can not live without STL nowadays. Sadly the latest STLport still do not build with OpenWatcom. After searching around (WATCOM C/C++ Programmer's FAQ is highly recommended), I tried STLport modification from Peter Chapin's OpenWatcom page and it worked flawlessly.

The steps to install STLport follows. This assumes that you have downloaded the above mentioned STLport package for OpenWatcom.

Copy stlport subdirectory to your Watcom installation, e.g. to C:\Watcom

In file setvars.bat, modify the INCLUDE variable so that it becomes something like:

SET INCLUDE=C:\watcom\stlport;C:\watcom\H;C:\watcom\H\NT

Then you can start compiling your program that uses STL.

If, however, you use the IDE, then your project must have the stlport path before Watcom include files; else you will face billions of error messages. Use menu Sources, Source Options, C++ Compiler Switches to manage it.

Note: Seems that Peter Chapin's fixes for STLport are only for the 32-bit target platform (e.g. Win32). I am still trying to figure out how to modify this STLport so that I can also target DOS 32-bit.


Comments:
You forgot Mingw
and digital Mars...
I am just trying Watcom...
 
Marton: What I did forget? I'm also using Mingw and Digital Mars from time to time. This post was just about latest experience with OpenWatcom, does not mean I skip other compilers of course.
 
Post a Comment

<< Home

Powered by Blogger