Skip to content

Support for OpenWatcom #58

Open
Open

Description

@MaiRat

Hi,

I want to create a DOS/32-Bit application using the hxdos startup-code (or nt/nts). I set up a XP32/SP3 VM on VirtualBox with Additions and installed OpenWatcomV2 2025-09-01. Additionally, I extracted all HX-ZIPs (Version 2.22) to c:\hx.

I followed the instructions in owsupp\readme.txt, but the link-step missing a hxow.lib. In detail:

  • system hxdos

    • hxow not found
    • missing symbols: _STACKTOP, _curbrk, _STACKLOW, _osmajor, _osminor, _psp, _Extender, _ExtenderSubtype, _Envptr, _Envseg, __uselfn, _dynend,
      _LpCmdLine, _LpPgmName
  • system hxnt

    • all-fine
  • system hxnts

    • Error! E3033: system block hxnts: directive error near 'disable'
    • After commenting out the "op disable 1030", the error "E2030: file clib3r.lib(cstrtwnt): multiple starting addresses found, already defined in initw3ow.obj(initw3ow.obj)" (already a ticket?!)

Is there anything I missed out in my environment?

Activity

  1. Baron-von-Riedesel commented on Sep 21, 2025

    @Baron-von-Riedesel
    Owner

    system hxdos

    1. instead of hxow.lib a single object module (spawn-hx.obj) is supplied.
    2. missing symbols: module cstrtdhx.obj is for OW's stack calling convention only.

    system hxnts: line "op disable 1030" should be changed to "disable 1030".

    A fixed hxdev222.zip has been added to HX v2.22 - hxdev222a.zip. The hxow.lib has been reintroduced, now called hxows.lib and hxowr.lib ( for OW's stack/register calling convention ).

  2. username00112233 commented on Sep 23, 2025

    @username00112233

    for me with this system hxnts fails with:

    loading object files
    searching libraries
    Error! E2028: _g_hInstance is an undefined reference
    creating a HX Extender (DOS PE, static Win32) executable
    file duser32s.lib(cursor.OBJ): undefined symbol _g_hInstance
    file duser32s.lib(ICON.OBJ): undefined symbol _g_hInstance
    file duser32s.lib(Bitmap.OBJ): undefined symbol _g_hInstance
    

    after using a function like ShowWindow();

  3. Baron-von-Riedesel commented on Sep 23, 2025

    @Baron-von-Riedesel
    Owner

    after using a function like ShowWindow();

    Although this can be fixed by adding the missing definition in DKRNL32/INITW32/INITW32.ASM I'd say that system hxnts should be used for console programs only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions