ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/12/31/18:00:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Jim Michaels <jmichae3 AT yahoo DOT com>
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: <fe137193-3c79-4ae8-82b7-2f0e438942fc AT g1g2000pra DOT googlegroups DOT com>
NNTP-Posting-Host: 76.115.70.155
Mime-Version: 1.0
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019