documentation
We are developing the project with Watcom C/C++ Version 11.0b. The project files for the Watcom IDE are included. It has been anounced that Watcom C/C++ is going to be released as Open Source. Check out www.openwatcom.org.The assembler files (with the exception of RDTSC.ASM) can not be assembled by WASM since it does not support the high level language interfaces that TASM ( we are using version 3.2) provides. The bach file asc\source\watcom.bat assembles all asm files that are needed, provided that TASM is in the path. But the assembled OBJ files are included so you don't need Tasm unless you want to modify the assembler files.
Since Watcom C++ does not come with the STL, we use STLport 4.0 which can be obtained from www.stlport.org. Some notes about installing STLPORT 4.0 :
Please read the library readme file as well. There are the links for getting the JPEG sources. As host platform for the development we use OS/2 and as target platform (you should have already noticed that) DOS with DOS4GW as 32bit extender. It should be no problem to develop with Win9x as host platform with Watcom C/C++ except that debugging might be a bit problematic, but that's neither our not Watcom's fault (why is Microsoft not capable of implementing DPMI 1.0 ??).
- Include the stlport directory to your INCLUDE enivironment variable before the original watcom entries.
- You may also need to edit the file stlport\stl_user_config.h and uncomment line #define __STL_NO_SGI_IOSTREAMS.
- Edit file stlport\stl\_alloc.h, line #879 and add an extra '0' argument:
return __stl_alloc_rebind(__STATIC_CAST(_Base&.*this),(_Tp*)0).allocate(__n,0);
To build ASC/win with Watcom, you need:The project files for the Watcom IDE are included in the asc/source/win32 directory.
- STLport. See the paragraph about it in the DOS section.
- JPEG-lib by the Independant Jpeg Group. On their homepage are links where you can download the source code.
- Uncompress the JPEG-lib source code into asc/source/libs/jpeg-6b/
- SDL. It can be downloaded from www.libsdl.org. You need the source code and the DLL file (version 1.1 or newer).
- Uncompress the SDL source to some directory and define an environment variable SDLDIR which points to this directory (without a trailing backslash).
- Create a subdirectory called DLL in asc/source/sdl and put the SDL.DLL into it.