delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/03/00:35:06

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++ Header files...
Date: Sun, 03 May 1998 00:27:59 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 35
Message-ID: <354BF24F.6F99@cs.com>
References: <354BBA87 DOT 82D277F3 AT sprynet DOT com>
NNTP-Posting-Host: ppp102.cs.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ishpeck wrote:
> 
> Whenever I try to compile a C++ program, it gives me a whole ton of
> errors in the iostream.h and whatever headers are included in it.
>   Can anyone tell me what's wrong?!

Not without reading your mind, or perhaps having some sort of
clairvoyant interface with your computer screen across the Internet. 
How about posting some sample code, the command line that you use to
compile it, and the output of compilation with the '-v' switch added? 
See chapters 6.10 and 6.12 of the FAQ for more information on this.

However, I can take a wild guess at possible causes of your problem:

 - You are not linking the C++ libraries when you compile (see
readme.1st).
 - You are using some invalid code before including the header that
makes the compiler choke.  Floating braces or unterminated comments
could easily do this.
 - You're using mixed versions of the C++ libraries and headers (say,
gpp 2.7.2.1 and gpp 2.8.0).
 - Your DJGPP configuration is incorrect.
 - Your copies of the header files are altered or corrupted in some way.
 - You're experiencing long filename conflicts with Windows 95 (try SET
LFN=Y in your environment).

Without actual code, I can't tell you more.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Courage is the complement of fear.  |
|       aka Fighteer I       | A man who is fearless cannot be      |
|   mailto:fighteer AT cs DOT com   | courageous.  (He is also a fool.)"   |
| http://www.cs.com/fighteer |                    - Lazarus Long    |
---------------------------------------------------------------------

- Raw text -


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