From: "Low Gek Siong" Newsgroups: comp.os.msdos.djgpp Subject: g++ stl_vector.h errors Date: 2 Apr 1998 04:28:39 GMT Organization: University of California, Berkeley Lines: 32 Message-ID: <01bd5def$73942ee0$4e449888@little-gecko> NNTP-Posting-Host: geksiong.hip.berkeley.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have a school project that compiles fine on g++ for Unix but refuses to compile on g++ in DJGPP. I got the following errors: d:/djgpp/lang/cxx/stl_vector.h:113: no type named `iterator_category' in `int' d:/djgpp/lang/cxx/stl_vector.h:113: no type named `value_type' in `int' d:/djgpp/lang/cxx/stl_vector.h:113: no type named `difference_type' in `int' d:/djgpp/lang/cxx/stl_vector.h:113: no type named `pointer' in `int' d:/djgpp/lang/cxx/stl_vector.h:113: no type named `reference' in `int' d:/djgpp/lang/cxx/stl_iterator.h: In function `{error} iterator_category(const int &)': d:/djgpp/lang/cxx/stl_iterator.h:126: confused by earlier errors, bailing out Is there anything wrong with the DJGPP libraries? I can find no reference to this problem in the FAQ or online archives. The gcc/g++ version I am using is 2.80 and I am using the port for Win95/nt. I got all the files from Delorie's ZipPicker service. Anyway, everything other program I have compiles without problems except this one. What is this stl thingy anyway? BTW, my professor wrote most of the code, not me. :-) That's why I don't think I should post the code here. But DJGPP should behave exactly the same way as GNU gcc/g++, right? Any help is appreciated, thanks. Please reply by email too cos I may not check this newsgroup frequently. Gek Siong