X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Jim Michaels Newsgroups: comp.os.msdos.djgpp Subject: Re: errors using C++ libraries Date: Wed, 31 Dec 2008 14:55:08 -0800 (PST) Organization: http://groups.google.com Lines: 230 Message-ID: <21cb02cc-b32a-4057-b191-8dcd61624c63@p2g2000prf.googlegroups.com> References: NNTP-Posting-Host: 76.115.70.155 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1230764108 18376 127.0.0.1 (31 Dec 2008 22:55:08 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Wed, 31 Dec 2008 22:55:08 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: p2g2000prf.googlegroups.com; posting-host=76.115.70.155; posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com this thing hit send all by itself. as I was saying, before, I was able to compile programs just fine. now I can't. I haven't changed anything. I don't know - maybe the mcafee antivirus or webroot spysweeper got a hold of something and deleted it, but that seems farfetched. I am using iterators in this program. #include #include #include #include f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'std::_Ios_Fmtflags std::ios_base::setf(std::_Ios_Fmtflags)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:577: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'std::_Ios_Fmtflags std::ios_base::setf(std::_Ios_Fmtflags, std::_Ios_Fmtflags)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:594: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:595: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'void std::ios_base::unsetf (std::_Ios_Fmtflags)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:606: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'long int& std::ios_base::iword (int)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:738: error: cannot bind packed field '__word- >std::ios_base::_Words::_M_iword' to 'long int&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'void*& std::ios_base::pword (int)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:759: error: cannot bind packed field '__word- >std::ios_base::_Words::_M_pword' to 'void*&' zapdupes.cpp: At global scope: zapdupes.cpp:97: warning: ignoring packed attribute on unpacked non- POD field 'std::string SZ_pathstruct::m_md5' zapdupes.cpp:98: warning: ignoring packed attribute on unpacked non- POD field 'std::string SZ_pathstruct::m_firstfilepath' zapdupes.cpp: In member function 'void CZ_md5list::zapdupes()': zapdupes.cpp:167: error: 'unlink' was not declared in this scope zapdupes.cpp: In function 'int main(int, char**)': zapdupes.cpp:506: error: 'addTreeToList' was not declared in this scope zapdupes.cpp:555: error: 'addTreeToList' was not declared in this scope f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h: In member function 'const _Iterator& __gnu_cxx::__normal_iterator<_Iterator, _Container>::base() const [with _Iterator = SZ_pathstruct*, _Container = std::vector >]': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:750: instantiated from 'bool __gnu_cxx::operator! =(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&) [with _Iterator = SZ_pathstruct*, _Container = std::vector >]' zapdupes.cpp:131: instantiated from here line was: for (it=hashes.begin(); it!=hashes.end(); it++) { f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:716: warning: returning reference to temporary f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h: In member function 'const _Iterator& __gnu_cxx::__normal_iterator<_Iterator, _Container>::base() const [with _Iterator = std::basic_string, std::allocator >*, _Container = std::vector, std::allocator >, std::allocator, std::allocator > > >]': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:750: instantiated from 'bool __gnu_cxx::operator! =(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&) [with _Iterator = std::basic_string, std::allocator >*, _Container = std::vector, std::allocator >, std::allocator, std::allocator > > >]' zapdupes.cpp:164: instantiated from here f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:716: warning: returning reference to temporary f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h: In member function 'const _Iterator& __gnu_cxx::__normal_iterator<_Iterator, _Container>::base() const [with _Iterator = const std::basic_string, std::allocator >*, _Container = std::vector, std::allocator >, std::allocator, std::allocator > > >]': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:809: instantiated from 'typename __gnu_cxx::__normal_iterator<_IteratorL, _Container>::difference_type __gnu_cxx::operator-(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&) [with _IteratorL = const std::basic_string, std::allocator >*, _IteratorR = const std::basic_string, std::allocator >*, _Container = std::vector, std::allocator >, std::allocator, std::allocator > > >]' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_vector.h:402: instantiated from 'size_t std::vector<_Tp, _Alloc>::size() const [with _Tp = std::basic_string, std::allocator >, _Alloc = std::allocator, std::allocator > >]' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/vector.tcc:264: instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = std::basic_string, std::allocator >, _Alloc = std::allocator, std::allocator > >]' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_vector.h:610: instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::basic_string, std::allocator >, _Alloc = std::allocator, std::allocator > >]' zapdupes.cpp:144: instantiated from here line was it->m_filepaths.push_back(arg_filepath); f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:716: warning: returning reference to temporary f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h: In member function 'const _Iterator& __gnu_cxx::__normal_iterator<_Iterator, _Container>::base() const [with _Iterator = const SZ_pathstruct*, _Container = std::vector >]': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:809: instantiated from 'typename __gnu_cxx::__normal_iterator<_IteratorL, _Container>::difference_type __gnu_cxx::operator-(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&) [with _IteratorL = const SZ_pathstruct*, _IteratorR = const SZ_pathstruct*, _Container = std::vector >]' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_vector.h:402: instantiated from 'size_t std::vector<_Tp, _Alloc>::size() const [with _Tp = SZ_pathstruct, _Alloc = std::allocator]' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/vector.tcc:264: instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = SZ_pathstruct, _Alloc = std::allocator]' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_vector.h:610: instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = SZ_pathstruct, _Alloc = std::allocator]' zapdupes.cpp:154: instantiated from here line was: hashes.push_back(s); f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/stl_iterator.h:716: warning: returning reference to temporary f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'std::_Ios_Fmtflags std::ios_base::setf(std::_Ios_Fmtflags)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:577: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'std::_Ios_Fmtflags std::ios_base::setf(std::_Ios_Fmtflags, std::_Ios_Fmtflags)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:594: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:595: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'void std::ios_base::unsetf (std::_Ios_Fmtflags)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:606: error: cannot bind packed field '((std::ios_base*) this)->std::ios_base::_M_flags' to 'std::_Ios_Fmtflags&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'long int& std::ios_base::iword (int)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:738: error: cannot bind packed field '__word- >std::ios_base::_Words::_M_iword' to 'long int&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h: In member function 'void*& std::ios_base::pword (int)': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ios_base.h:759: error: cannot bind packed field '__word- >std::ios_base::_Words::_M_pword' to 'void*&' f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/basic_ios.h: In member function 'void std::basic_ios<_CharT, _Traits>::_M_setstate(std::_Ios_Iostate) [with _CharT = char, _Traits = std::char_traits]': f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/ostream.tcc:757: instantiated from 'std::basic_ostream& std::operator<<(std::basic_ostream&, const char*) [with _Traits = std::char_traits]' md5.cpp:83: instantiated from here f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/ bits/basic_ios.h:154: error: cannot bind packed field '((std::basic_ios >*)this)- >std::basic_ios >::.std::ios_base::_M_streambuf_state' to 'std::_Ios_Iostate&' Jim Michaels