From: Steve McConnel Subject: vs vs <_string.h> To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Tue, 4 Apr 1995 17:14:38 -0500 (CDT) TWIMC, it's been awhile since i've dipped into C++ with DJGPP, but i did today and ran into trouble with "#include ": gcc is reading from c:/djgpp/include instead of <_string.h> from c:/djgpp/cplusinc. if i change "#include " to "#include <_string.h>", it works fine. isn't this supposed to be automatic? The output from gcc follows: gcc -v -c textin.cc Reading specs from c:/djgpp/lib\specs gcc version 2.6.3 c:/djgpp/bin\cpp.exe -lang-c++ -v -undef -D__GNUC__=2 ... textin.cc ... GNU CPP version 2.6.3 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/cplusinc c:/djgpp/include /usr/local/lib/g++-include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.6.1/include /usr/include End of search list. c:/djgpp/bin\cc1plus.exe c:/djgpp/tmp\cc000086 -quiet -dumpbase textin.cc ... GNU C++ version 2.6.3 (80386, BSD syntax) compiled by GNU C version 2.6.3. In file included from textin.cc:3: textin.h:9: warning: ANSI C++ forbids declaration `String' with no type or ... textin.h:9: parse error before `;' ... my files look like this: ----------------------------------textin.cc---------------------------------- // textin.cc #include "textin.h" TextInControlInformation textinControl; ----------------------------------textin.h ---------------------------------- // textin.h -- class definitions for text objects manipulated by TextIn #ifndef textin_h_included_already #define textin_h_included_already #include class StringSet { public: private: String string; StringSet *link; }; ... #endif i have DJGPP 1.12maint4 with gcc 2.6.3 installed in the default directories. -- Stephen McConnel steve AT acadcomp DOT sil DOT org Academic Computing Department or Summer Institute of Linguistics steve DOT mcconnel AT sil DOT org 7500 W. Camp Wisdom Road phone: (214)709-3361 Dallas, TX 75236 U.S.A. fax: (214)709-3387