Date: Wed, 19 Sep 2001 08:43:35 +0300 (WET) From: Andris Pavenis X-Sender: pavenis AT ieva06 To: Chris Cc: djgpp AT delorie DOT com Subject: Re: DJGPP archive: In-Reply-To: <9o8roi$bni63$1@ID-107925.news.dfncis.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 18 Sep 2001, Chris wrote: > Where can we find the latest version of DJGPP > with the C++ std. I cant seem to get this to compile > with 2.95 > > #include > #include > #include > #include > #include > #include > > int main() > { > std::ifstream in("dic.txt"); > std::vector cs(std::numeric_limits::max()); > std::istreambuf_iterator it(in); > std::istreambuf_iterator end; > while(it != end) > { > unsigned char ch=(unsigned char)*it++; > ++cs[ch]; > } > in.close(); > unsigned char pos='\0'; > std::size_t icount = 0; > while(pos != cs.size()) > { > if (cs[pos] > 0) > { > std::cout<<(char)pos<<": "< if(++icount%5==0) > std::cout<<'\n'; > } > ++pos; > } > std::cout<<"Goodbye"< Code uses features not supported in libstdc++ from gcc-2.95.X. Use either STLPort (untested) or try upgrading to gcc-3.0.1: http://www.ltn.lv/~pavenis/gcctest.html (not uploaded to simtelnet yet) Andris