www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/22/15:04:44

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Fri, 22 Feb 2002 20:31:44 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Stratis Aftousmis" <lsdguru78 AT hotmail DOT com>
Message-Id: <9791-Fri22Feb2002203144+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <%Qvd8.5806$0y2.288632@typhoon.austin.rr.com>
(lsdguru78 AT hotmail DOT com)
Subject: Re: Having a problem compiling a program.
References: <%Qvd8.5806$0y2 DOT 288632 AT typhoon DOT austin DOT rr DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Stratis Aftousmis" <lsdguru78 AT hotmail DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 22 Feb 2002 18:11:07 GMT
> 
> Here is the command:  c:\djgpp> gcc hello.cpp -o hello.exe
> Here is the problem:
> In file included from hello.cpp:1:
> djgpp.ver:1:25: No include path in which to find sys/version.h
> hello.cpp:1:25: No include path in which to find iostream.h
> hello.cpp: In function ' int main()":
> hello.cpp:4: 'cout' undeclared (first use this function)
> hello.cpp:4: (Each undeclared identifier is reported only once for each
>     function it appears in.)
> 
> Iv'e tryed even including the header in my autoexec.bat, but now i just
> have: SET C_INCLUDE_PATH=C:\djgpp
> and all my header's are there. Any help would be much helpful.

I think that's your problem: the headers should _not_ be in c:\djgpp,
they should be in its subdirectories.

I'm guessing that you unzipped the *.zip files without preserving the
directory structure, which wreaks havoc on the DJGPP setup.  I
suggest to remove the entire directory c:\djgpp, and then unzip the
files again, this time using the program unzip32.exe that's available
from the same place where you got the other *.zip files.

- Raw text -


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