www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/17/02:59:11

Message-ID: <19971117075801.13443.qmail@db01.netaddress.usa.net>
Date: Mon, 17 Nov 1997 00:58:01
From: NELS COBBEY <nelscobbey AT usa DOT net>
To: djgpp AT delorie DOT com
Subject: Need help: gcc compilation error: "...cannot exec 'cpp': No such file or directory..."
Mime-Version: 1.0

To DJGPP gurus:

(1) I am unable to compile a simple c program, using the gcc command.


(2) These are the zip files that I downloaded into my djgpp directory
(C:\Nels\programming\djgpp) and unzipped there:
txi390b.zip     rhide11b.zip    mak375b.zip     lgp271b.zip
gpp272b.zip     gdb416b.zip     gcc2721b.zip    djlsr201.zip
djdev201.zip    djcrx201.zip    csdpmi3b.zip    bnu27b.zip


(3) Here is the file C:\Nels\programming\djgpp\environ.lst:
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\NELS\PROGRAMMING\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND
MSINPUT=C:\MSINPUT
DJGPP=C:\Nels\programming\DJGPP\DJGPP.env
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4


(4) Here is the output from go32-v2
go32/v2 version 2.0 built Aug 12 1996 22:27:23
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
 well as v1 binaries (old makefiles).  Put ahead of the old go32 in your PATH
 but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.

DPMI memory available: 24595 Kb
DPMI swap space available: 5161 Kb


(5) Here is my c:\autoexec.bat:
@ECHO OFF
set PATH=C:\Nels\programming\DJGPP\bin;%PATH%
SET MSINPUT=C:\MSINPUT
set DJGPP=C:\Nels\programming\DJGPP\DJGPP.env


(6) Here is my c:\config.sys:
rem --------------------------------------------------------------------
rem    CONFIG.SYS file for CompUSA PC Units installed with Windows 95
rem --------------------------------------------------------------------
rem "Real Mode" (16-bit DOS) device drivers and command strings go here
rem if you need them for MS-DOS Mode (Single Application Mode) or if you
rem add legacy hardware that Windows 95 has no support for.
rem --------------------------------------------------------------------
rem 
rem --------------------------------------------------------------------
rem We have included the commands below these dotted lines to support a
rem "generic" MS-DOS Mode config.sys for you. Windows 95 doesn't need
rem them; however, it *will* use them while they are here. 
rem --------------------------------------------------------------------

[common]
DEVICE=C:\WINDOWS\himem.sys /TESTMEM:OFF
DEVICE=C:\WINDOWS\emm386.exe NOEMS
DOS=HIGH,UMB
FILES=60
BUFFERS=25
SHELL=C:\WINDOWS\command.com C:\WINDOWS /P

rem --------------------------------------------------------------------
rem The following line is for support of the CD-ROM included with your
rem computer. The CD-ROM driver is installed for support of
rem "Restart computer in MS-DOS Mode" only.
rem --------------------------------------------------------------------

DEVICEHIGH=C:\DOSDRVRS\CDROM\ecscdide.sys /D:MSCD001

REM == PISETUP Begin Delete ==
DEVICE=C:\WINDOWS\COMMAND\DISPLAY.SYS con=(ega,,1)
REM  == PISETUP End Delete ==


(7) The program that I am trying to compile is the following (temp.c):
#include <stdio.h>

main()
 {
  printf("hello\n");
 }


(8) The following command resulted in the following message:
C:\Nels\programming\DJGPP>gcc -v temp.c -o temp.exe
gcc version 2.7.2.1
 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC-MINOR__=7 -Dunix -Di386 -DG032 -DMS
DOS -D__unix__ -D__i386__ -D__G032__ -D__MSDOS__ -D__unix -D__i386 -D__G032 -D__
MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) temp.c C:\WINDO
WS\TEMP\ccbaaaaa
gcc.exe: installation problem, cannot exec 'cpp': No such file or directory (ENO
ENT)


Thanks a lot for the help.
____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019