We're back! (IN POG FORM)
Originally posted by KryToday's tarball commpiles. It just fails on some wx version
Originally posted by KryYou error is not the one on today's CVS. Are you sure you did put the archive.h where it belongs?
leo@ubuntu:~$ ls -l /usr/include/wx-2.5/wx/archive.h-rw-r--r-- 1 root root 10350 2005-03-21 11:55 /usr/include/wx-2.5/wx/archive.h
/////////////////////////////////////////////////////////////////////////////// Name: archive.h// Purpose: Streams for archive formats// Author: Mike Wetherell// RCS-ID: $Id: archive.h,v 1.6 2005/02/12 21:40:38 MW Exp $// Copyright: (c) 2004 Mike Wetherell// Licence: wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _WX_ARCHIVE_H__#define _WX_ARCHIVE_H__#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)#pragma interface "archive.h"#endif#include "wx/defs.h"#if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS#include "wx/stream.h"#include "wx/filename.h"/////////////////////////////////////////////////////////////////////////////// wxArchiveNotifierclass WXDLLIMPEXP_BASE wxArchiveNotifier{public: virtual ~wxArchiveNotifier() { } virtual void OnEntryUpdated(class wxArchiveEntry& entry) = 0;};/////////////////////////////////////////////////////////////////////////////// wxArchiveEntry//// Holds an entry's meta data, such as filename and timestamp.class WXDLLIMPEXP_BASE wxArchiveEntry : public wxObject{public: virtual ~wxArchiveEntry() { } virtual wxDateTime GetDateTime() const = 0; virtual wxFileOffset GetSize() const = 0; virtual wxFileOffset GetOffset() const = 0; virtual bool IsDir() const = 0; virtual bool IsReadOnly() const = 0; virtual wxString GetInternalName() const = 0; virtual wxPathFormat GetInternalFormat() const = 0; virtual wxString GetName(wxPathFormat format = wxPATH_NATIVE) const = 0; virtual void SetDateTime(const wxDateTime& dt) = 0; virtual void SetSize(wxFileOffset size) = 0; virtual void SetIsDir(bool isDir = true) = 0; virtual void SetIsReadOnly(bool isReadOnly = true) = 0; virtual void SetName(const wxString& name, wxPathFormat format = wxPATH_NATIVE) = 0; wxArchiveEntry *Clone() const { return DoClone(); } void SetNotifier(wxArchiveNotifier& notifier); virtual void UnsetNotifier() { m_notifier = NULL; }protected: wxArchiveEntry() : m_notifier(NULL) { } wxArchiveEntry(const wxArchiveEntry& e) : wxObject(e), m_notifier(NULL) { } virtual void SetOffset(wxFileOffset offset) = 0; virtual wxArchiveEntry* DoClone() const = 0; wxArchiveNotifier *GetNotifier() const { return m_notifier; } wxArchiveEntry& operator=(const wxArchiveEntry& entry);private: wxArchiveNotifier *m_notifier; DECLARE_ABSTRACT_CLASS(wxArchiveEntry)};/////////////////////////////////////////////////////////////////////////////// wxArchiveInputStream//// GetNextEntry() returns an wxArchiveEntry object containing the meta-data// for the next entry in the archive (and gives away ownership). Reading from// the wxArchiveInputStream then returns the entry's data. Eof() becomes true// after an attempt has been made to read past the end of the entry's data.//// When there are no more entries, GetNextEntry() returns NULL and sets Eof().class WXDLLIMPEXP_BASE wxArchiveInputStream : public wxFilterInputStream{public: typedef wxArchiveEntry entry_type; virtual ~wxArchiveInputStream() { } virtual bool OpenEntry(wxArchiveEntry& entry) = 0; virtual bool CloseEntry() = 0; wxArchiveEntry *GetNextEntry() { return DoGetNextEntry(); } virtual char Peek() { return wxInputStream::Peek(); } protected: wxArchiveInputStream(wxInputStream& stream, wxMBConv& conv); virtual wxArchiveEntry *DoGetNextEntry() = 0; wxMBConv& GetConv() const { return m_conv; }private: wxMBConv& m_conv;};/////////////////////////////////////////////////////////////////////////////// wxArchiveOutputStream//// PutNextEntry is used to create a new entry in the output archive, then// the entry's data is written to the wxArchiveOutputStream.//// Only one entry can be open for output at a time; another call to// PutNextEntry closes the current entry and begins the next.// // The overload 'bool PutNextEntry(wxArchiveEntry *entry)' takes ownership// of the entry object.class WXDLLIMPEXP_BASE wxArchiveOutputStream : public wxFilterOutputStream{public: virtual ~wxArchiveOutputStream() { } virtual bool PutNextEntry(wxArchiveEntry *entry) = 0; virtual bool PutNextEntry(const wxString& name, const wxDateTime& dt = wxDateTime::Now(), wxFileOffset size = wxInvalidOffset) = 0; virtual bool PutNextDirEntry(const wxString& name, const wxDateTime& dt = wxDateTime::Now()) = 0; virtual bool CopyEntry(wxArchiveEntry *entry, wxArchiveInputStream& stream) = 0; virtual bool CopyArchiveMetaData(wxArchiveInputStream& stream) = 0; virtual bool CloseEntry() = 0;protected: wxArchiveOutputStream(wxOutputStream& stream, wxMBConv& conv); wxMBConv& GetConv() const { return m_conv; }private: wxMBConv& m_conv;};/////////////////////////////////////////////////////////////////////////////// wxArchiveIterator//// An input iterator that can be used to transfer an archive's catalog to// a container.#if wxUSE_STL || defined WX_TEST_ARCHIVE_ITERATOR#include #include template inlinevoid _wxSetArchiveIteratorValue( X& val, Y entry, void *WXUNUSED(d)){ val = X(entry);}template inlinevoid _wxSetArchiveIteratorValue( std::pair& val, Z entry, Z WXUNUSED(d)){ val = std::make_pair(X(entry->GetInternalName()), Y(entry));}#if defined _MSC_VER && _MSC_VER < 1300template #elsetemplate #endifclass wxArchiveIterator{public: typedef std::input_iterator_tag iterator_category; typedef T value_type; typedef ptrdiff_t difference_type; typedef T* pointer; typedef T& reference; wxArchiveIterator() : m_rep(NULL) { } wxArchiveIterator(Arc& arc) { typename Arc::entry_type* entry = arc.GetNextEntry(); m_rep = entry ? new Rep(arc, entry) : NULL; } wxArchiveIterator(const wxArchiveIterator& it) : m_rep(it.m_rep) { if (m_rep) m_rep->AddRef(); } ~wxArchiveIterator() { if (m_rep) m_rep->UnRef(); } const T& operator *() const { return m_rep->GetValue(); } const T* operator ->() const { return &**this; } wxArchiveIterator& operator =(const wxArchiveIterator& it) { if (it.m_rep) it.m_rep.AddRef(); if (m_rep) m_rep.UnRef(); m_rep = it.m_rep; return *this; } wxArchiveIterator& operator ++() { m_rep = m_rep->Next(); return *this; } wxArchiveIterator operator ++(int) { wxArchiveIterator it(*this); ++(*this); return it; } bool operator ==(const wxArchiveIterator& j) const { return m_rep == j.m_rep; } bool operator !=(const wxArchiveIterator& j) const { return !(*this == j); }private: class Rep { Arc& m_arc; typename Arc::entry_type* m_entry; T m_value; int m_ref; public: Rep(Arc& arc, typename Arc::entry_type* entry) : m_arc(arc), m_entry(entry), m_value(), m_ref(1) { } ~Rep() { delete m_entry; } void AddRef() { m_ref++; } void UnRef() { if (--m_ref == 0) delete this; } Rep *Next() { typename Arc::entry_type* entry = m_arc.GetNextEntry(); if (!entry) { UnRef(); return NULL; } if (m_ref > 1) { m_ref--; return new Rep(m_arc, entry); } delete m_entry; m_entry = entry; m_value = T(); return this; } const T& GetValue() { if (m_entry) { _wxSetArchiveIteratorValue(m_value, m_entry, m_entry); m_entry = NULL; } return m_value; } } *m_rep;};typedef wxArchiveIterator wxArchiveIter;typedef wxArchiveIterator std::pair > wxArchivePairIter;#endif // wxUSE_STL || defined WX_TEST_ARCHIVE_ITERATOR/////////////////////////////////////////////////////////////////////////////// wxArchiveClassFactory//// A wxArchiveClassFactory instance for a particular archive type allows// the creation of the other classes that may be needed.class WXDLLIMPEXP_BASE wxArchiveClassFactory : public wxObject{public: typedef wxArchiveEntry entry_type; typedef wxArchiveInputStream instream_type; typedef wxArchiveOutputStream outstream_type; typedef wxArchiveNotifier notifier_type;#if wxUSE_STL || defined WX_TEST_ARCHIVE_ITERATOR typedef wxArchiveIter iter_type; typedef wxArchivePairIter pairiter_type;#endif virtual ~wxArchiveClassFactory() { } wxArchiveEntry *NewEntry() const { return DoNewEntry(); } wxArchiveInputStream *NewStream(wxInputStream& stream) const { return DoNewStream(stream); } wxArchiveOutputStream *NewStream(wxOutputStream& stream) const { return DoNewStream(stream); } virtual wxString GetInternalName( const wxString& name, wxPathFormat format = wxPATH_NATIVE) const = 0; void SetConv(wxMBConv& conv) { m_pConv = &conv; } wxMBConv& GetConv() const { return *m_pConv; }protected: virtual wxArchiveEntry *DoNewEntry() const = 0; virtual wxArchiveInputStream *DoNewStream(wxInputStream& stream) const = 0; virtual wxArchiveOutputStream *DoNewStream(wxOutputStream& stream) const = 0; wxArchiveClassFactory() : m_pConv(&wxConvLocal) { } wxArchiveClassFactory& operator=(const wxArchiveClassFactory& WXUNUSED(f)) { return *this; }private: wxMBConv *m_pConv; DECLARE_ABSTRACT_CLASS(wxArchiveClassFactory)};#endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS#endif // _WX_ARCHIVE_H__
Originally posted by stefanerohttp://forum.amule.org/thread.php?threadid=5523
/usr/include/wx-2.5/wx/zipstrm.h: In member function `const int& const_reverse_iterator::operator*() const':/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `;' token/usr/include/wx-2.5/wx/list.h: In member function `const_reverse_iterator& const_reverse_iterator::operator++()':/usr/include/wx-2.5/wx/list.h:345: error: `wxNodeBase* wxNodeBase::GetPrevious() const' is protected/usr/include/wx-2.5/wx/zipstrm.h:265: error: within this context/usr/include/wx-2.5/wx/zipstrm.h:265: error: invalid conversion from ` wxNodeBase*' to `wx_wxZipEntryListNode*'/usr/include/wx-2.5/wx/list.h: In member function `const_reverse_iterator const_reverse_iterator::operator++(int)':/usr/include/wx-2.5/wx/list.h:345: error: `wxNodeBase* wxNodeBase::GetPrevious() const' is protected/usr/include/wx-2.5/wx/zipstrm.h:265: error: within this context/usr/include/wx-2.5/wx/zipstrm.h:265: error: invalid conversion from ` wxNodeBase*' to `wx_wxZipEntryListNode*'/usr/include/wx-2.5/wx/list.h: In member function `const_reverse_iterator& const_reverse_iterator::operator--()':/usr/include/wx-2.5/wx/list.h:344: error: `wxNodeBase* wxNodeBase::GetNext() const' is protected/usr/include/wx-2.5/wx/zipstrm.h:265: error: within this context/usr/include/wx-2.5/wx/zipstrm.h:265: error: invalid conversion from ` wxNodeBase*' to `wx_wxZipEntryListNode*'/usr/include/wx-2.5/wx/list.h: In member function `const_reverse_iterator const_reverse_iterator::operator--(int)':/usr/include/wx-2.5/wx/list.h:344: error: `wxNodeBase* wxNodeBase::GetNext() const' is protected/usr/include/wx-2.5/wx/zipstrm.h:265: error: within this context/usr/include/wx-2.5/wx/zipstrm.h:265: error: invalid conversion from ` wxNodeBase*' to `wx_wxZipEntryListNode*'/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `,' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `,' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: non-member function ` const_iterator begin()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h:265: error: semicolon missing after declaration of `class const_iterator'/usr/include/wx-2.5/wx/zipstrm.h: In function `int begin()':/usr/include/wx-2.5/wx/zipstrm.h:265: error: new declaration `int begin()'/usr/include/wx-2.5/wx/zipstrm.h:265: error: ambiguates old declaration ` iterator begin()'/usr/include/wx-2.5/wx/zipstrm.h: In function `iterator begin()':/usr/include/wx-2.5/wx/zipstrm.h:265: error: cannot convert `const_iterator' to `int' in return/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: non-member function ` const_iterator end()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `const_iterator end()':/usr/include/wx-2.5/wx/zipstrm.h:265: error: new declaration `const_iterator end()'/usr/include/wx-2.5/wx/zipstrm.h:265: error: ambiguates old declaration ` iterator end()'/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: non-member function ` const_reverse_iterator rbegin()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `const_reverse_iterator rbegin() ':/usr/include/wx-2.5/wx/zipstrm.h:265: error: new declaration ` const_reverse_iterator rbegin()'/usr/include/wx-2.5/wx/zipstrm.h:265: error: ambiguates old declaration ` reverse_iterator rbegin()'/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: non-member function ` const_reverse_iterator rend()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `const_reverse_iterator rend()':/usr/include/wx-2.5/wx/zipstrm.h:265: error: new declaration ` const_reverse_iterator rend()'/usr/include/wx-2.5/wx/zipstrm.h:265: error: ambiguates old declaration ` reverse_iterator rend()'/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: `size_type' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `,' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void resize(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `n' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: `size' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: `pop_back' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: `v' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: `push_back' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: non-member function `bool empty()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/string.h: In function `bool empty()':/usr/include/wx-2.5/wx/string.h:110: error: too few arguments to function `bool IsEmpty(const char*)'/usr/include/wx-2.5/wx/zipstrm.h:265: error: at this point in file/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `=' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void push_front(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `const_base_reference' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `=' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void push_back(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `void push_back(...)' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void pop_back()':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `void pop_back()' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h: In function `void assign(const_iterator, const_iterator)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `clear' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: warning: cannot pass objects of non-POD type `class const_iterator' through `...'; call will abort at runtime/usr/include/wx-2.5/wx/zipstrm.h:265: warning: cannot pass objects of non-POD type `class const_iterator' through `...'; call will abort at runtime/usr/include/wx-2.5/wx/zipstrm.h:265: error: no match for 'operator++' in '++ first'/usr/include/wx-2.5/wx/zipstrm.h:265: error: `Append' cannot be used as a function/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `,' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void assign(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `size_type' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `=' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: `i' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: type specifier omitted for parameter `const_reference'/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `=' token/usr/include/wx-2.5/wx/zipstrm.h: In function `iterator insert(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: type specifier omitted for parameter `size_type'/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `,' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void insert(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: new declaration `void insert(...)'/usr/include/wx-2.5/wx/zipstrm.h:265: error: ambiguates old declaration ` iterator insert(...)'/usr/include/wx-2.5/wx/zipstrm.h: In function `iterator insert(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `=' token/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void insert(iterator, const_iterator, const_iterator)':/usr/include/wx-2.5/wx/zipstrm.h:265: warning: cannot pass objects of non-POD type `class const_iterator' through `...'; call will abort at runtime/usr/include/wx-2.5/wx/zipstrm.h:265: warning: cannot pass objects of non-POD type `class const_iterator' through `...'; call will abort at runtime/usr/include/wx-2.5/wx/zipstrm.h:265: error: no match for 'operator++' in '++ first'/usr/include/wx-2.5/wx/zipstrm.h:265: error: `Insert' cannot be used as a function/usr/include/wx-2.5/wx/list.h: In function `iterator erase(iterator)':/usr/include/wx-2.5/wx/list.h:344: error: `wxNodeBase* wxNodeBase::GetNext() const' is protected/usr/include/wx-2.5/wx/zipstrm.h:265: error: within this context/usr/include/wx-2.5/wx/zipstrm.h:265: error: invalid conversion from ` wxNodeBase*' to `wx_wxZipEntryListNode*'/usr/include/wx-2.5/wx/zipstrm.h:265: error: initializing argument 1 of ` iterator::iterator(wx_wxZipEntryListNode*, wx_wxZipEntryListNode*)'/usr/include/wx-2.5/wx/zipstrm.h: In function `iterator erase(iterator, iterator)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `DeleteNodes' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: In function `void clear()':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `void clear()' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h:265: error: `Clear' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: In function `void splice(iterator, _wxZipEntryList&, iterator, iterator)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `erase' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: In function `void splice(iterator, _wxZipEntryList&)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `begin' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:265: error: `end' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: In function `void splice(iterator, _wxZipEntryList&, iterator)':/usr/include/wx-2.5/wx/zipstrm.h:265: warning: cannot pass objects of non-POD type `class iterator' through `...'; call will abort at runtime/usr/include/wx-2.5/wx/zipstrm.h:265: error: `erase' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void remove(...)':/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `)' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void reverse()':/usr/include/wx-2.5/wx/zipstrm.h:265: error: `Reverse' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:265: error: parse error before `}' token/usr/include/wx-2.5/wx/zipstrm.h:268: error: parse error before `{' token/usr/include/wx-2.5/wx/zipstrm.h:273: error: destructors must be member functions/usr/include/wx-2.5/wx/zipstrm.h:273: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:275: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:275: error: syntax error before `{' token/usr/include/wx-2.5/wx/zipstrm.h:279: error: `bool PutNextEntry(const wxString&, const wxDateTime&, long long int)' redeclared as different kind of symbol/usr/include/wx-2.5/wx/zipstrm.h:275: error: previous declaration of `bool PutNextEntry'/usr/include/wx-2.5/wx/zipstrm.h:275: error: previous non-function declaration `bool PutNextEntry'/usr/include/wx-2.5/wx/zipstrm.h:279: error: conflicts with function declaration `bool PutNextEntry(const wxString&, const wxDateTime&, long long int)'/usr/include/wx-2.5/wx/zipstrm.h:284: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:284: error: parse error before `&' token/usr/include/wx-2.5/wx/zipstrm.h: In function `void SetComment(const wxString&) ':/usr/include/wx-2.5/wx/zipstrm.h:291: error: redefinition of `void SetComment(const wxString&)'/usr/include/wx-2.5/wx/zipstrm.h:168: error: `void SetComment(const wxString&)' previously defined here/usr/include/wx-2.5/wx/zipstrm.h:291: error: redefinition of `void SetComment(const wxString&)'/usr/include/wx-2.5/wx/zipstrm.h:168: error: `void SetComment(const wxString&)' previously defined here/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:293: error: non-member function `int GetLevel()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `int GetLevel()':/usr/include/wx-2.5/wx/zipstrm.h:293: error: `m_level' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:296: error: parse error before `protected'/usr/include/wx-2.5/wx/zipstrm.h:298: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:298: error: non-member function `wxFileOffset OnSysTell()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `wxFileOffset OnSysTell()':/usr/include/wx-2.5/wx/zipstrm.h:298: error: `m_entrySize' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:302: error: type specifier omitted for parameter `wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:302: error: parse error before `&' token/usr/include/wx-2.5/wx/zipstrm.h:303: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:304: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:306: error: non-member function `bool IsParentSeekable()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `bool IsParentSeekable()':/usr/include/wx-2.5/wx/zipstrm.h:307: error: `m_offsetAdjustment' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:309: error: parse error before `private'/usr/include/wx-2.5/wx/zipstrm.h:311: error: `wxArchiveEntry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:311: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:311: error: `wxArchiveInputStream' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:311: error: `stream' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:311: error: `bool CopyEntry' redeclared as different kind of symbol/usr/include/wx-2.5/wx/zipstrm.h:284: error: previous declaration of `bool CopyEntry(...)'/usr/include/wx-2.5/wx/zipstrm.h:311: error: initializer list being treated as compound expression/usr/include/wx-2.5/wx/zipstrm.h:312: error: `wxArchiveInputStream' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:312: error: `stream' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:312: error: `bool CopyArchiveMetaData' redeclared as different kind of symbol/usr/include/wx-2.5/wx/zipstrm.h:285: error: previous declaration of `bool CopyArchiveMetaData(wxZipInputStream&)'/usr/include/wx-2.5/wx/zipstrm.h:314: error: non-member function `bool IsOpened()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `bool IsOpened()':/usr/include/wx-2.5/wx/zipstrm.h:314: error: `m_comp' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:314: error: `m_pending' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:316: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:316: error: parse error before `=' token/usr/include/wx-2.5/wx/zipstrm.h:322: error: conflicting types for ` wxZipStreamLink*m_backlink'/usr/include/wx-2.5/wx/zipstrm.h:253: error: previous declaration as ` wxZipWeakLinks*m_backlink'/usr/include/wx-2.5/wx/zipstrm.h:323: error: cannot declare variable `m_entries ' to be of type `_wxZipEntryList'/usr/include/wx-2.5/wx/zipstrm.h:323: error: because the following virtual functions are abstract:/usr/include/wx-2.5/wx/list.h:435: error: virtual wxNodeBase* wxListBase::CreateNode(wxNodeBase*, wxNodeBase*, void*, const wxListKey&)/usr/include/wx-2.5/wx/zipstrm.h:326: error: syntax error before `*' token/usr/include/wx-2.5/wx/zipstrm.h:330: error: `wxFileOffset m_entrySize' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h:332: error: `wxOutputStream*m_comp' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h:333: error: `int m_level' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h:334: error: `wxFileOffset m_offsetAdjustment' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h:335: error: redefinition of `wxString m_Comment'/usr/include/wx-2.5/wx/zipstrm.h:244: error: `wxString m_Comment' previously declared here/usr/include/wx-2.5/wx/zipstrm.h:337: error: parse error before `private'/usr/include/wx-2.5/wx/zipstrm.h:337: error: syntax error before `&' token/usr/include/wx-2.5/wx/zipstrm.h:345: error: parse error before `{' token/usr/include/wx-2.5/wx/zipstrm.h:349: error: parse error before `&' token/usr/include/wx-2.5/wx/zipstrm.h:350: error: parse error before `const'/usr/include/wx-2.5/wx/zipstrm.h:351: error: destructors must be member functions/usr/include/wx-2.5/wx/zipstrm.h:351: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:353: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:353: error: syntax error before `{' token/usr/include/wx-2.5/wx/zipstrm.h:356: error: syntax error before `*' token/usr/include/wx-2.5/wx/zipstrm.h:361: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:361: error: non-member function `wxFileOffset GetLength()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `wxFileOffset GetLength()':/usr/include/wx-2.5/wx/zipstrm.h:361: error: `m_entry' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:363: error: parse error before `protected'/usr/include/wx-2.5/wx/zipstrm.h:365: error: non-member function `wxFileOffset OnSysTell()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `wxFileOffset OnSysTell()':/usr/include/wx-2.5/wx/zipstrm.h:365: error: redefinition of `wxFileOffset OnSysTell()'/usr/include/wx-2.5/wx/zipstrm.h:298: error: `wxFileOffset OnSysTell()' previously defined here/usr/include/wx-2.5/wx/zipstrm.h:365: error: redefinition of `wxFileOffset OnSysTell()'/usr/include/wx-2.5/wx/zipstrm.h:298: error: `wxFileOffset OnSysTell()' previously defined here/usr/include/wx-2.5/wx/zipstrm.h:365: error: `m_decomp' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:368: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:369: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:371: error: parse error before `private'/usr/include/wx-2.5/wx/zipstrm.h:375: error: syntax error before `*' token/usr/include/wx-2.5/wx/zipstrm.h:377: error: `wxArchiveEntry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:377: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:377: error: redefinition of `bool OpenEntry'/usr/include/wx-2.5/wx/zipstrm.h:353: error: `bool OpenEntry' previously defined here/usr/include/wx-2.5/wx/zipstrm.h:386: error: non-member function `bool AtHeader()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h:387: error: non-member function `bool AfterHeader()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h:388: error: non-member function `bool IsOpened()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `bool IsOpened()':/usr/include/wx-2.5/wx/zipstrm.h:388: error: redefinition of `bool IsOpened()'/usr/include/wx-2.5/wx/zipstrm.h:314: error: `bool IsOpened()' previously defined here/usr/include/wx-2.5/wx/zipstrm.h:388: error: redefinition of `bool IsOpened()'/usr/include/wx-2.5/wx/zipstrm.h:314: error: `bool IsOpened()' previously defined here/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:390: error: `out' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:392: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:392: error: parse error before `=' token/usr/include/wx-2.5/wx/zipstrm.h:395: error: conflicting types for ` wxStoredInputStream*m_store'/usr/include/wx-2.5/wx/zipstrm.h:320: error: previous declaration as ` wxStoredOutputStream*m_store'/usr/include/wx-2.5/wx/zipstrm.h:399: error: 'wxZipEntry' is used as a type, but is not defined as a type./usr/include/wx-2.5/wx/zipstrm.h:400: error: redefinition of `bool m_raw'/usr/include/wx-2.5/wx/zipstrm.h:327: error: `bool m_raw' previously declared here/usr/include/wx-2.5/wx/zipstrm.h:401: error: redefinition of `size_t m_headerSize'/usr/include/wx-2.5/wx/zipstrm.h:329: error: `size_t m_headerSize' previously declared here/usr/include/wx-2.5/wx/zipstrm.h:402: error: redefinition of `wxUint32 m_crcAccumulator'/usr/include/wx-2.5/wx/zipstrm.h:331: error: `wxUint32 m_crcAccumulator' previously declared here/usr/include/wx-2.5/wx/zipstrm.h:403: error: `wxInputStream*m_decomp' used prior to declaration/usr/include/wx-2.5/wx/zipstrm.h:407: error: redefinition of `wxFileOffset m_offsetAdjustment'/usr/include/wx-2.5/wx/zipstrm.h:334: error: `wxFileOffset m_offsetAdjustment' previously declared here/usr/include/wx-2.5/wx/zipstrm.h:411: error: redefinition of `wxString m_Comment'/usr/include/wx-2.5/wx/zipstrm.h:335: error: `wxString m_Comment' previously declared here/usr/include/wx-2.5/wx/zipstrm.h:414: error: `entry' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:414: error: `inputStream' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:414: error: `wxZipOutputStream::CopyEntry' declared as a friend/usr/include/wx-2.5/wx/zipstrm.h:414: error: initializer list being treated as compound expression/usr/include/wx-2.5/wx/zipstrm.h:416: error: `inputStream' was not declared in this scope/usr/include/wx-2.5/wx/zipstrm.h:416: error: ` wxZipOutputStream::CopyArchiveMetaData' declared as a friend/usr/include/wx-2.5/wx/zipstrm.h:418: error: parse error before `private'/usr/include/wx-2.5/wx/zipstrm.h:418: error: syntax error before `&' token/usr/include/wx-2.5/wx/zipstrm.h:426: error: parse error before `{' token/usr/include/wx-2.5/wx/zipstrm.h:430: error: syntax error before `*' token/usr/include/wx-2.5/wx/zipstrm.h:432: error: syntax error before `*' token/usr/include/wx-2.5/wx/zipstrm.h:437: error: non-member function `wxString GetInternalName(const wxString&, wxPathFormat)' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `wxString GetInternalName(const wxString&, wxPathFormat)':/usr/include/wx-2.5/wx/zipstrm.h:437: error: incomplete type 'wxZipEntry' cannot be used to name a scope/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:439: error: parse error before `protected'/usr/include/wx-2.5/wx/zipstrm.h:442: error: syntax error before `*' token/usr/include/wx-2.5/wx/zipstrm.h:444: error: syntax error before `*' token/usr/include/wx-2.5/wx/zipstrm.h:448: error: virtual outside class declaration/usr/include/wx-2.5/wx/zipstrm.h:448: error: non-member function `wxClassInfo* GetClassInfo()' cannot have `const' method qualifier/usr/include/wx-2.5/wx/zipstrm.h: In function `wxClassInfo* GetClassInfo()':/usr/include/wx-2.5/wx/zipstrm.h:448: error: redefinition of `wxClassInfo* GetClassInfo()'/usr/include/wx-2.5/wx/zipstrm.h:258: error: `wxClassInfo* GetClassInfo()' previously defined here/usr/include/wx-2.5/wx/zipstrm.h:448: error: redefinition of `wxClassInfo* GetClassInfo()'/usr/include/wx-2.5/wx/zipstrm.h:258: error: `wxClassInfo* GetClassInfo()' previously defined here/usr/include/wx-2.5/wx/zipstrm.h:448: error: `wxZipClassFactory' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h:448: error: parse error before `::' token/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:466: error: invalid use of undefined type ` class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:108: error: forward declaration of `class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h: In member function `bool wxZipEntry::IsText() const':/usr/include/wx-2.5/wx/zipstrm.h:467: error: `TEXT_ATTR' undeclared (first use this function)/usr/include/wx-2.5/wx/zipstrm.h: At global scope:/usr/include/wx-2.5/wx/zipstrm.h:471: error: invalid use of undefined type ` class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:108: error: forward declaration of `class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:476: error: invalid use of undefined type ` class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:108: error: forward declaration of `class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:481: error: invalid use of undefined type ` class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:108: error: forward declaration of `class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:496: error: invalid use of undefined type ` class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:108: error: forward declaration of `class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:504: error: invalid use of undefined type ` class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:108: error: forward declaration of `class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:513: error: invalid use of undefined type ` class wxZipEntry'/usr/include/wx-2.5/wx/zipstrm.h:108: error: forward declaration of `class wxZipEntry'IPFilter.cpp: In member function `int CIPFilter::LoadFromZipFile(const wxString&)':IPFilter.cpp:365: error: `wxZipInputStream' undeclared (first use this function)IPFilter.cpp:365: error: parse error before `(' tokenIPFilter.cpp:366: error: `inputStream' undeclared (first use this function)make[4]: *** [amuled-IPFilter.o] Error 1make[4]: Leaving directory `/home/leo/Desktop/amule-cvs/src'make[3]: *** [all-recursive] Error 1make[3]: Leaving directory `/home/leo/Desktop/amule-cvs/src'make[2]: *** [all] Error 2make[2]: Leaving directory `/home/leo/Desktop/amule-cvs/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/leo/Desktop/amule-cvs'make: *** [all] Error 2
Originally posted by stefanerodid you run/sbin/ldconfig as root? after you placed the archives.h in the wx-folder?
Originally posted by stefanerocould you try with a clean make? so domake distclean && ./autogen.sh && ./configure..... && makeif that does not help, insatll a clean wx-package but since unbutu copied the error over from debian, you are probably stuck with compiling yourself...
Setting up internationalization files.autopoint: *** cvs program not foundautopoint: *** Stop.Running aclocal -I m4/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES run info '(automake)Extending aclocal' or see [URL]http://sources.redhat.com/automake/automake.html#Extending-aclocal[/URL]/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB/usr/share/aclocal/avifile.m4:21: warning: underquoted definition of AM_PATH_AVIFILERunning autoheaderRunning autoconfRunning automake --foreign -a -c -fconfigure.in:635: required file `intl/Makefile.in' not foundMakefile.am:1: required directory ./intl does not exist
Originally posted by KryCan you guys keep this to the compilation forums?