| delorie.com/archives/browse.cgi | search |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: STL |
| Date: | Sun, 16 Apr 2000 18:06:22 +0200 |
| Organization: | NetVision Israel |
| Lines: | 23 |
| Message-ID: | <38F9E4FE.C6050371@is.elta.co.il> |
| References: | <38F7F296 DOT 820699EB AT nospam DOT com> |
| NNTP-Posting-Host: | ras1-p33.rvt.netvision.net.il |
| Mime-Version: | 1.0 |
| X-Trace: | news.netvision.net.il 955897538 8664 62.0.172.35 (16 Apr 2000 15:05:38 GMT) |
| X-Complaints-To: | abuse AT netvision DOT net DOT il |
| NNTP-Posting-Date: | 16 Apr 2000 15:05:38 GMT |
| X-Mailer: | Mozilla 4.7 [en] (Win98; I) |
| X-Accept-Language: | en,ru,hebrew |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Frank Lin wrote: > > Hi all, > > I experienced the following problem while compiling a djgpp/c++ program > using <string>. has anyone experienced this before? > > In file included from C:/DJGPP/lang/cxx/alloc.h:21, > from C:/DJGPP/lang/cxx/std/bastring.h:39, > from C:/DJGPP/lang/cxx/string:6, > from stest.cpp:1: > C:/DJGPP/lang/cxx/stl_alloc.h:742: invalid member template declaration > C:/DJGPP/lang/cxx/stl_alloc.h:780: invalid member template declaration > C:/DJGPP/lang/cxx/stl_alloc.h:817: invalid member template declaration > C:/DJGPP/lang/cxx/stl_alloc.h:858: invalid member template declaration > C:/DJGPP/lang/cxx/stl_alloc.h:961: empty component declaration > C:/DJGPP/lang/cxx/stl_alloc.h:961: parse error before `<' What does GCC print if you add -v to the compilation command line? I suspect that you have an old C++ compiler (cc1plus.exe) lurking somewhere on your PATH. Please check that both the compiler and the C++ headers are from the same version.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |