Mail Archives: djgpp/1993/02/19/23:28:51
I had formerly posted the mesage below. I have gotten djgpp going.
The big trick was to type:
emm386 auto
before attempting to use gcc. I also had no GO32 variable!
Thanks for all the help.
Fred
--------- Received message begins Here ---------
|From fred Tue Feb 16 13:42:57 1993
|To: djgpp AT sun DOT soe DOT clarkson DOT edu
|Subject: Problem using gcc for dos
|Cc:
|
|I installed djgpp on my 486SX ... when I try to compile code with
|gcc though I get the message:
|
| CPU must be in real mode (not V86 mode) to run this program.
|
|can't figure a way around it.
|
|My autoexec.bat file reads:
|
|@ECHO OFF
|PATH C:\;C:\WINDOWS;C:\DOS;C:\MOUSE;c:\bat;c:\apps\bin;c:\apps\djgpp\bin
|C:\WINDOWS\SMARTDRV.EXE
|LOADHIGH C:\MOUSE\MOUSE.COM
|LOADHIGH C:\DOS\DOSKEY.COM
|SET TEMP=C:\WINDOWS\TEMP
|PROMPT $P$G
|REM
|REM rcs configuration
|REM
|SET LOGNAME=fred
|SET TZ=EST5EDT
|REM
|REM gcc configuration
|REM
|set COMPILER_PATH=c:/apps/djgpp/bin
|set C_INCLUDE_PATH=c:/apps/djgpp/include
|set CPLUS_INCLUDE_PATH=c:/apps/djgpp/cplusinc;c:/apps/djgpp/include
|set OBJC_INCLUDE_PATH=c:/apps/djgpp/include
|set OBJCPLUS_INCLUDE_PATH=c:/apps/djgpp/include
|set LIBRARY_PATH=c:/apps/djgpp/lib
|set TMPDIR=c:/tmp
|set GO32TMP=c:/tmp
|set BISON_SIMPLE=c:/apps/djgpp/lib/bison.simple
|set BISON_HAIRY=c:/apps/djgpp/lib/bison.hairy
|set FLEX_SKELETON=c:/apps/djgpp/lib/flex.skeleton
|set 387=NO
|REM
|REM VIRTUAL Directory for fred
|REM
|SUBST D: C:\USR\FRED
|REM
|WIN
|
|
|My config.sys reads:
|
|DEVICE=C:\WINDOWS\HIMEM.SYS
|DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
|DOS=HIGH,UMB
|DEVICEHIGH=C:\DOS\ANSI.SYS
|DEVICEHIGH=C:\DOS\SETVER.EXE
|SHELL=C:\DOS\COMMAND.COM C:\DOS\ /E:384 /P
|BUFFERS=20
|FILES=32
|STACKS=9,256
|
|
|I tried removing the removing the NOEMS from
|
| DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
|
|as suggested in one of the help files, but that did not work.
|
|
|Any help would be appreciated.
|
|
|Fred
|
|---
|Fred Phelan
|fred AT poly2 DOT nist DOT gov
|
|
|
- Raw text -