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-