Mail Archives: djgpp/1998/10/03/12:50:56
On 2 Oct 98 at 23:43, Thiago F.G. Albuquerque wrote:
> Did you know that in order to use the string class in your program, you
> have to #include - not "string" or "cstring" (both available in cxx's
> include directory)- but "_String.h"? What a pity the docs don't say a line
> about this (or at least I couldn't find it). Does anybody know where can I
> find information on which header goes with each class?
Section 8.2 of the FAQ says this:
| didn't install it, GCC won't find them. Files whose names
| usually start with a capital letter, on MS-DOS have an
| underscore `_' prepended so they can be distinguished from
| `complex.h', `regex.h' and the like under case-insensitive DOS.
| Change `Complex.h' to `_Complex.h', and `String.h' to
| `_String.h' in your source, and GCC will find them. The same
| goes for the header `iostreamP.h'--you should use `_iostreamP.h'
| instead. If you don't have the underscore `_' on your keyboard,
| you might find using `strclass.h' instead of `_String.h' easier.
Does this help? I don't use C++ so I don't know, but it seems
to be explaining what you asked about.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -