www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/18/09:45:06

From: jazzyjeff34 AT hotmail DOT com (Klytu)
Newsgroups: comp.os.msdos.djgpp
Subject: Strange compiler errors
Date: 18 Feb 2003 06:33:55 -0800
Organization: http://groups.google.com/
Lines: 28
Message-ID: <250404d5.0302180633.320212ce@posting.google.com>
NNTP-Posting-Host: 12.20.43.1
X-Trace: posting.google.com 1045578835 25642 127.0.0.1 (18 Feb 2003 14:33:55 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 18 Feb 2003 14:33:55 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Yesterday, during the blizzard here in Northeast U.S., I installed the
latest DJGPP package (2.03)along with RHIDE and gcc3.2.1 . I compiled
a program of mine that compiled with no errors under the previous
package (2.02) and got error messages indicating that the functions in
<cmath> were undefined. I did not include <cmath> directly but had the
following includes in my source:

#include <ctime>
#include <cstdlib>
#include <fstream>
#include <iostream>

I am running DJGPP in a DOS window under windows 98, 400mhz Pentium
II, 192MB RAM. I rarely compile directly from the command line; I use
RHIDE projects and compile through RHIDE. (A side problem I noticed is
that if I don't include <iostream>, I get errors indicating that cout
and cin are undefined. I thought including <iostream> after <fstream>
is already included was redundant or am I wrong about that? I got that
particular error when I compiled under the old DJGPP package as well.
That is why both <fstream> and <iostream> are included.) Anyway, I
read through the FAQs and checked to make sure my installation was
correct. Basically everything was installed properly and I changed
nothing (I might have changed the order of the includes in my source,
but I am not sure). Suddenly everything compiles with no errors now. I
would post the exact error messages I got if I could remember them,
but suffice it to say that all the generated errors were in indirectly
included files that were not in my source but in the standard library.
Any explanation for this would be appreciated!

- Raw text -


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