Skip to content

Conversation

@jmalak
Copy link

@jmalak jmalak commented Aug 1, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant