You can download the software from here. And for configuration, it’s better to select the target and host as Win32 (NT/Win95/Win32s), well that depends on which platform you are intending to develop for. But if you have no idea then you are best left with Win32 as this will allow your compiled program to run on Win XP and later versions (yeah Win 10 counts too).
Code in hello program on the editor and then (5 seconds later) it’s time to compile your hello world program. There are two ways to compile: GUI or CLI.GUI
For Command Line Interface method you have to launch ‘system’ under file menu from the editor window then compile link as described below –
wcc386 -bt=nt hello.c wcl386 -bt=nt hello.obj
By the way, if you’ve configured Watcom differently on your system, for instance enabling all target and host platforms you might be trying this way –wcc hello.c
Well, that looks similar to GCC on Linux but the issue with this is that you are compiling for the 16-bit processor. You’d have to look at the history of microprocessors for the better understanding of processor numbering, why 32-bit are often referred to as 386, 486, 586.
So the above wcc386 actually compiles your hello world program for 32-bit Windows OS and the extra argument -bt=nt actually means “Binary target” and for ‘nt’ you got it this way NT. All lines from Win XP till 10 are families of Windows NT.
Keep in mind that this solution is also not really a solution when you have a program that has to pass arguments in the main function and in that case you’ve to stick to the previous method of compiling, linking and running using the console program. Now the best part about this is GUI saves a lot of time and eases you the programmer from having to type in compiler commands and arguments all the time. Here’s how you’d do to launch Watcom
Fire up your terminal and key in this: