www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/17/04:05:57

X-Originating-IP: [200.161.67.9]
From: "Diogo Abdalla" <mollsem AT hotmail DOT com>
To: djgpp AT delorie DOT com
Date: Wed, 17 Jul 2002 05:49:18 +0000
Mime-Version: 1.0
Message-ID: <F5AQcikgOAGQ1WgvWX900013918@hotmail.com>
X-OriginalArrivalTime: 17 Jul 2002 05:49:20.0615 (UTC) FILETIME=[B2454770:01C22D55]
Reply-To: djgpp AT delorie DOT com

First I want to say that Ive already read the FAQ and dint found any 
solutions to my problem. Actually, I did found some solutions but none of 
then worked.
Second, I pretty sure that my DJGPP is correctly installed: I got all those 
files that the ZIP-Picker chose for me and installed then by the 
instructions given in the README1st.
Third, I a complete begginer on all those C++ and DJGPP stuff. Actually, I 
was trying to create my first C++ program.

Well, following the instructions of a tutorial I wrote, in Rhide, this 
little code:
	#include <iostream.h>
	int main()
	{
	cout << "Hello!";
	return 0;
	}
Then the nightmare begun. I got an error saying that the compiler could not 
find iostream.h. Ive searched my HD for the file and found it on 
djgpp\lang\cxx-v31\backward\. Then I copied the file to djgpp\include (I was 
supposed to do that?) and tried it again. This time, the compiler found 
iostream.h, but it gave me an error saying that the file contains one or 
more "deprecated" headers (What means "deprecated", anyway? ).

Then I decided tho look on the FAQ for an awser. he FAQ said that I should 
download the file "gpp2952b.zip", and I did that and installed the pack. I 
found a new subdirectory on djgpp\lang, called "cxx", and I found iostream.h 
on it.  Again, Ive copied this new iostream.h to the djgpp\include (again, 
should I be doing this?) and tried to compile again. Well, now the compiler 
can find the file, but it returns an absurd amount of errors in the 
iostream.h file and in other file called streambuf.h. I wont bother writing 
then all here because they are realy many and most of then say the same 
things. Most of then are parse errors like:

"...\include\streambuf.h(189) Error: parse error before '{' token"
"...\include\iostream.h(57) Error: parse error before '&' token"
"...\include\iostream.h(114) Error: parse error before 'istream'"

And others like:

"...\include\iostream.h(180) Error: '_gcout' undeclared"
and etc.

It seems that the file I got is not working at all. And now I got no idea 
what else could I do. DJGPP appears to be working correctly, aside from this 
problem: I compiled and executed a little program just like this one using 
stdio.h and printf instead of iostream.h and cout and it worked (I managed 
to get a "Hello" on the screen).

Ive read the FAQs, the docs the infos and all that and  Im still hopeless. 
How can I learn C++ if I cant even get a compiler to work? I not sure that 
the problem is only with iostream.h: maybe there is problems with other 
readers too that I havent tried to use yet. Im realy desperated and this 
mailing list is my last hope; if I cant get it to work I will give up on 
using DJGPP.

Im sure Im doing something wrong, something realy stupid. I just need you 
guys to point what exactly Im doing wrong. Please help me. Im using Rhide as 
the IDE and running on Windows 95.
My autoexec.bat:

@ECHO OFF
LH C:\SDD\UNIVBE32.EXE -W
LH C:\AMOUSE\AMOUSE.COM
LH C:\MSCDEX.EXE /D:OEMCD001 /L:D
KEYB BR,,C:\WINDOWS\COMMAND\KEYBOARD.SYS
MODE CON CODEPAGE PREPARE=((850) C:\WINDOWS\COMMAND\EGA.CPI)
MODE CON CODEPAGE SELECT=850
SET BLASTER=A220 I5  D1 T4
rem DJGPP and etc
SET DJGPP=C:\DJGPP\DJGPP.ENV
SET RSXNTDJ=C:\RSXNTDJ
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;%RSXNTDJ%\bin;C:\DJGPP\BIN
SET C_INCLUDE_PATH=%RSXNTDJ%\include\win32\anders
cd\

My config.sys:

DEVICE=C:\YAMAHA\OPL3SAX\SACDROM.SYS /P0 /IOFF /A0
DEVICE=C:\WINDOWS\HIMEM.SYS
DOS=HIGH,UMB
DEVICE=C:\WINDOWS\EMM386.EXE RAM I=B000-B7FF
DEVICEHIGH=C:\WINDOWS\COMMAND\display.sys con=(ega,,1)
Country=055,850,C:\WINDOWS\COMMAND\country.sys
FILES=60
BUFFERS=40
LastDrive=Z


P.S: Sorry for this long e-mail and my bad english.



- Raw text -


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