Mail Archives: djgpp/1995/04/05/03:37:42
>it's been awhile since i've dipped into C++ with DJGPP, but i did today and
>ran into trouble with "#include <String.h>": gcc is reading <string.h> from
>c:/djgpp/include instead of <_string.h> from c:/djgpp/cplusinc. if i
>change "#include <String.h>" to "#include <_string.h>", it works fine.
>isn't this supposed to be automatic? The output from gcc follows:
Nope; if you want automaticity, try `#include <strclass.h>' (although that
_was_ broken in early 1.12 :-( ). The reason String.h was renamed _string.h
is that the MSDOS FS is case insensitive, so the C preprocessor won't do
the right thing unless you perform such a renaming.
--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
Geek code 2.1 [for explanation, finger hayden@ | `God's Laws' (Rudy Rucker,
vax1.mankato.msus.edu]: GCS/M/S d(-) H s g+ p? \ _Master of Space and Time_):
!au a17 w+ v+(++) C++(+++)>++++ UL++(S+)>++++ \ 1) Be clean. 2) Follow Gary.
P+(++) L++ 3(-) E- N+(++) K- W--(---) M-@ V-(--) \ 3) Teach God's Laws.
po-(--) Y+ t(+) !5 j(++) R(-) G' tv--(-) b+++ +---------------------------
!D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?
- Raw text -