www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/22/13:18:29

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Stratis Aftousmis" <lsdguru78 AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Having a problem compiling a program.
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <%Qvd8.5806$0y2.288632@typhoon.austin.rr.com>
Date: Fri, 22 Feb 2002 18:11:07 GMT
NNTP-Posting-Host: 24.243.4.160
X-Complaints-To: abuse AT rr DOT com
X-Trace: typhoon.austin.rr.com 1014401467 24.243.4.160 (Fri, 22 Feb 2002 12:11:07 CST)
NNTP-Posting-Date: Fri, 22 Feb 2002 12:11:07 CST
Organization: Road Runner - Texas
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Greeting's, here is the program:
#include <iostream.h>
int main()
{
cout<<"Hello, world, will i get this to work?";
return 0;
}
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'm a child of the media...Ck-1 calvin klien"
Calvin klien commercial


- Raw text -


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