Xref: news2.mv.net comp.os.msdos.djgpp:7279 From: Wolfram Brenig Newsgroups: comp.os.msdos.djgpp Subject: DJGPP's STL Problem/Bug ?! Date: 14 Aug 1996 20:51:22 GMT Organization: Institute of Theoretical Physics, University of Cologne, Germany Lines: 53 Message-ID: <4ute8a$90f@news.rrz.uni-koeln.de> NNTP-Posting-Host: sun17.thp.uni-koeln.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp HELP !!!!!, can anybody provide help on this problem I have with DJGPP's STL implementation -- or is anybody at least willing to confirm the following compilation error: STL contains a class deque and STL provides for a number of algortihms which *should* act properly on deque. However, most of these algortihms, like: rotate(..) unique(..) reverse(..) random_shuffle(..) ....and I dont no how many else of them will not compile within DJGPP. At least not for me. The error always consits of one, or both of the following: ***************************************** c:/djgpp/lang/cxx/algo.h:520: type unification failed for function template `template Distance * distance_type (input_iterator<...> &)' c:/djgpp/lang/cxx/algo.h:521: type unification failed for function template `template struct input_iterator_tag iterator_category(input_iterator<...> &)' ***************************************** A simple example program to check this is: #include #include int main() { deque v; v.push_back(1); v.push_back(2); v.push_back(3); reverse(v.begin(),v.end()); return EXIT_SUCCESS; } Any help is most appreciated !!!!