If you're trying to write a utility using Open Watcom C/C++ that works both on DOS and on the Linux machine you normally cross-compile from, and you're getting mysterious misbehaviours on one platform, check your INCLUDE path.
Having INCLUDE=$WATCOM/lh when cross-building for DOS or having INCLUDE=$WATCOM/h when building natively for Linux can result in successfull builds with confusing runtime misbehaviours.
QOTO: Question Others to Teach Ourselves. A STEM-oriented instance.
No hate, No censorship. Be kind, be respectful
We federate with all servers: we don't block any servers.