Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

FreeDOS, open watcom error: DOS/16M [40]


  • Please log in to reply
1 reply to this topic

#1 EtcherSage

EtcherSage

  •  Avatar image
  • Members
  • 2 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Ohio
  • Local time:12:03 AM

Posted 15 December 2022 - 01:51 PM

OS: FreeDOS 1.3 LITE as a Portable Installation (small usb flashdrive)

So, I am trying to get Open WatcomC setup on my install, i got all the paths set up, went to test if it all worked by compiling a simple <graph.h> "hello world" program and it refused to compile. every time i go to compile it it throws this:

C:\> wcl hello.c
// watcom copywrite things
        wcc hello.c
DOS\16M error: [40] not enough available extended memory (xmin)
Error: compiler returned a bad status compiling "hello.c"
C:\> 

I also tried to compile it using "wcl -3 -fpi87 -fp3 -os -d0 -mt -bt=dos -fe=hello.com hello.c" and it threw exact same errors

 

While searching for a solution i found people having a similar issue on some other sites with the advice being that maybe something in the AUTOEXEC.BAT (FDAUTO.BAT for newer versions of FreeDOS) was messed up, but they didnt say what in there it could be, so i didnt know what to look for. ended up finding others saying to try and expierement with different combinations of "SET xms=false,ems=false,umb=false" and "SET DOS16M=:16M" with no success, or even any changes at all. so at this point im stumped on what to do now- ie why im here asking-

 

Thought maybe it was something with the memory my system was using but on checking i wouldnt think that memory would be an issue:

C:\> mem

Memory Type            Total        Used         Free
---------------------  -----------  -----------  ------------
Conventional                581K          25K         556K
Upper                         0K           0K           0K
Reserved                    443K         443K           0K
Extended (XMS)        2,988,676K         157K   2,988,519K      
--------------------- ----------- ----------- --------------
Total Memory          2,989,700K         625K   2,989,075K

Total under 1MB             581K          25K         556K

Largest executable program size              520K (532,608 bytes)
FreeDOS is resident in the high memory area.
C:\> 

I dont think that its my code either thats causing the issue but its here just in case-

hello.c file:

#include <conio.h>
#include <graph.h>

int 
main()
{
    _setvideomode(_TEXTC80);

    _settextposition(10, 60);
    _outtext("hello world");

    _settextposition(25, 1);
    _outtext("press any key to quit");

    getch();

    _setvideomode(_DEFAULTMODE);

    return 0;
}

Thank you, for reading this far- if you have any advice itd be a huge help i dont realy know what im supposed to do now-



BC AdBot (Login to Remove)

 


#2 EtcherSage

EtcherSage
  • Topic Starter

  •  Avatar image
  • Members
  • 2 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Ohio
  • Local time:12:03 AM

Posted 15 December 2022 - 02:43 PM

nvm i figured out how to get it working. the fdconfig.sys file for FD13 LITE wasnt set up quite the same as it is in the full version. main differences being no startup menu and not loading any form of extended memory at all. got the FD13 Full fdconfig.sys file converted over and its all working fine now.

this site helped a fair bit if anyone else has a similar issue

https://opensource.com/article/21/6/freedos-fdconfigsys






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users