Mail Archives: djgpp/2008/12/31/18:00:12
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 <dirent.h>
#include <iostream>
#include <fstream>
#include <vector>
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<SZ_pathstruct, std::allocator<SZ_pathstruct> >]':
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<SZ_pathstruct,
std::allocator<SZ_pathstruct> >]'
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<char, std::char_traits<char>,
std::allocator<char> >*, _Container =
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >]':
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<char, std::char_traits<char>, std::allocator<char>
>*, _Container = std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >]'
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<char,
std::char_traits<char>, std::allocator<char> >*, _Container =
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >]':
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<char,
std::char_traits<char>, std::allocator<char> >*, _IteratorR = const
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*, _Container = std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >]'
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<char,
std::char_traits<char>, std::allocator<char> >, _Alloc =
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >]'
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<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp =
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>, _Alloc = std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >]'
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<char,
std::char_traits<char>, std::allocator<char> >, _Alloc =
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >]'
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<SZ_pathstruct, std::allocator<SZ_pathstruct> >]':
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<SZ_pathstruct,
std::allocator<SZ_pathstruct> >]'
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<SZ_pathstruct>]'
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<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = SZ_pathstruct,
_Alloc = std::allocator<SZ_pathstruct>]'
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<SZ_pathstruct>]'
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<char>]':
f:/djgpp/v2gnu/bin/../lib/gcc/djgpp/4.10/../../../../include/cxx/4.10/
bits/ostream.tcc:757: instantiated from 'std::basic_ostream<char,
_Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const
char*) [with _Traits = std::char_traits<char>]'
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<char, std::char_traits<char> >*)this)-
>std::basic_ios<char, std::char_traits<char>
>::<anonymous>.std::ios_base::_M_streambuf_state' to
'std::_Ios_Iostate&'
Jim Michaels
- Raw text -