your code is not compilable due to you use -W option which is not valid for owcc utility.
You wrote in your code prog16cv.c
if defined(WATCOMC) && defined(LINUX)
undef O_BINARY / Work around OpenWatcom libc bug. /
endif
It is not valid. You have a trouble due to wrongly configured OpenWatcom.
You have a mistake in configuration for Linux, you export h subdir, but correct is export INCLUDE=${WATCOM}/lh.
In your case prog16cv.c is compiled for Linux host therefore must use lh subdir other programs are compiled for 16-bit OS/2 target therefore must use h subdir
your code is not compilable due to you use -W option which is not valid for owcc utility.
You wrote in your code prog16cv.c
if defined(WATCOMC) && defined(LINUX)
undef O_BINARY / Work around OpenWatcom libc bug. /
endif
It is not valid. You have a trouble due to wrongly configured OpenWatcom.
You have a mistake in configuration for Linux, you export h subdir, but correct is export INCLUDE=${WATCOM}/lh.
In your case prog16cv.c is compiled for Linux host therefore must use lh subdir other programs are compiled for 16-bit OS/2 target therefore must use h subdir