From: "Bernhard Derix" Newsgroups: comp.os.msdos.djgpp Subject: HELP! Fehler beim Compilieren in Regex.h Date: 14 Mar 97 23:31:31 GMT Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 50 Distribution: world Message-ID: <01bc30cf$c94d9680$3d97e784@pderix01> NNTP-Posting-Host: news.rz.uni-passau.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hi, Nachdem ich djgpp so installiert habe wie in der Readme.1st angewiesen, bekomme ich nun viele Fehler beim Versuch ein einfaches C++ Programm zu kompilieren, und zwar: d:/djgpp/include/Regex.h:16: parse error before `;' d:/djgpp/include/Regex.h:16: warning: ANSI C++ forbids declaration `regoff_t' with no type or storage class d:/djgpp/include/Regex.h:24: syntax error before `;' d:/djgpp/include/Regex.h:25: syntax error before `;' str.cc: In function `int main()': str.cc:11: `String' undeclared (first use this function) str.cc:11: (Each undeclared identifier is reported only on str.cc:11: for each function it appears in.) str.cc:11: parse error before `;' str.cc:12: `Regex' undeclared (first use this function) str.cc:22: `line' undeclared (first use this function) Mein einfachstes Beispielprogramm str.cc: #include #include #include #include int main() { String line; Regex re("[a-z][A-B]"); int count = 0; char ch[80]; ifstream istr("testfile"); cout << "str.cc" << endl; while(!istr.eof()) { istr.getline(ch,80); line = ch; cout << "Line:" << line << endl; } return 0; } Unter Unix funkt. es tadellos. Ich bitte um schnelle Hilfe, da ich es dringend fuer meine Diplomarbeit braeuchte. Danke im Vorraus, Bernhard