pts / owtarget16

targeting ELKS and other 8086 operating systems with the OpenWatcom C compiler
5 stars 1 forks source link

fix build break and incorect OpenWatcom configuration #2

Open jmalak opened 3 months ago

jmalak commented 3 months ago

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