error compilation with mingw
Didier Bretin
didier at bretin.net
Fri Feb 1 08:10:58 PST 2008
Hi,
I'm trying to compile wxMSW-2.8.7 with mingw 5.1.3 and msys 1.0.10
under windows xp.
I use this configure:
../configure --disable-shared --enable-debug --enable-unicode --without-zlib
(without-zlib because I have a zlib.h not found error)
and then with make:
$ make
/c/wxMSW-2.8.7/msw-debug/bk-deps g++ -c -o baselib_fs_arc.o -D__WXMSW__
-I../src/regex -I../src/expat/lib -DwxUSE_GUI=0 -DwxUSE_BASE=1 -D__WXDEBUG__
-I/c/wxMSW-2.8.7/msw-debug/lib/wx/include/msw-unicode-debug-static-2.8
-I../include -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy -g -O0
../src/common/fs_arc.cpp
../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
../src/common/fs_arc.cpp:45: error: expected `;' before '*' token
../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
../src/common/fs_arc.cpp:45: error: expected `;' before '*' token
../src/common/fs_arc.cpp:45: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of `const_t2'
with no type
../src/common/fs_arc.cpp:45: error: `t2' does not name a type
../src/common/fs_arc.cpp: In constructor
`wxArchiveFSEntryHash_wxImplementation_Pair::wxArchiveFSEntryHash_wxImplementation_Pair(const
wxString&, int)':
../src/common/fs_arc.cpp:45: error: class
`wxArchiveFSEntryHash_wxImplementation_Pair' does not have any field named `second'
../src/common/fs_arc.cpp:45: error: `s' was not declared in this scope
../src/common/fs_arc.cpp:45: error: `t2' was not declared in this scope
../src/common/fs_arc.cpp:45: warning: unused variable 's'
../src/common/fs_arc.cpp:45: warning: unused variable 't2'
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
../src/common/fs_arc.cpp:45: error: expected `;' before '*' token
../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of `mapped_type'
with no type
../src/common/fs_arc.cpp:45: error: expected `;' before '&' token
../src/common/fs_arc.cpp:45: error: expected `;' before "const_iterator"
../src/common/fs_arc.cpp: In member function
`wxArchiveFSEntryHash::Insert_Result wxArchiveFSEntryHash::insert(const
wxArchiveFSEntryHash_wxImplementation_Pair&)':
../src/common/fs_arc.cpp:45: error: 'const class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
../src/common/fs_arc.cpp:45: error: 'class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
../src/common/fs_arc.cpp:45: error: 'const class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:49: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
../src/common/fs_arc.cpp:49: error: expected `;' before '*' token
../src/common/fs_arc.cpp:56: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:57: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp:58: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:59: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp:59: error:
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)' and
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)' cannot be overloaded
../src/common/fs_arc.cpp:66: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
../src/common/fs_arc.cpp:66: error: expected `;' before '*' token
../src/common/fs_arc.cpp:72: error: expected `;' before '(' token
../src/common/fs_arc.cpp:83: error: ISO C++ forbids declaration of
`wxArchiveInputStream' with no type
../src/common/fs_arc.cpp:83: error: expected `;' before '*' token
../src/common/fs_arc.cpp:87: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:89: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)':
../src/common/fs_arc.cpp:92: error: `backer' was not declared in this scope
../src/common/fs_arc.cpp:94: error: class `wxArchiveFSCacheDataImpl' does not
have any field named `m_archive'
../src/common/fs_arc.cpp:94: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:94: warning: unused variable 'factory'
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:99: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:101: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp:101: error: redefinition of
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)'
../src/common/fs_arc.cpp:89: error:
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)' previously defined here
../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)':
../src/common/fs_arc.cpp:104: error: `stream' was not declared in this scope
../src/common/fs_arc.cpp:105: error: class `wxArchiveFSCacheDataImpl' does not
have any field named `m_archive'
../src/common/fs_arc.cpp:105: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:104: warning: unused variable 'stream'
../src/common/fs_arc.cpp:105: warning: unused variable 'factory'
../src/common/fs_arc.cpp: In destructor
`wxArchiveFSCacheDataImpl::~wxArchiveFSCacheDataImpl()':
../src/common/fs_arc.cpp:111: error: 'class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:125: error:
`wxArchiveFSEntry*wxArchiveFSCacheDataImpl::AddToCache' is not a static member
of `class wxArchiveFSCacheDataImpl'
../src/common/fs_arc.cpp:125: error: `wxArchiveEntry' was not declared in this scope
../src/common/fs_arc.cpp:125: error: `entry' was not declared in this scope
../src/common/fs_arc.cpp:126: error: expected `,' or `;' before '{' token
../src/common/fs_arc.cpp: In member function `void
wxArchiveFSCacheDataImpl::CloseStreams()':
../src/common/fs_arc.cpp:138: error: `m_archive' was not declared in this scope
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:144: error: expected constructor, destructor, or type
conversion before '*' token
../src/common/fs_arc.cpp: In member function `wxArchiveFSEntry*
wxArchiveFSCacheDataImpl::GetNext(wxArchiveFSEntry*)':
../src/common/fs_arc.cpp:181: error: `m_archive' was not declared in this scope
../src/common/fs_arc.cpp:183: error: `wxArchiveEntry' was not declared in this scope
../src/common/fs_arc.cpp:183: error: `entry' was not declared in this scope
../src/common/fs_arc.cpp:186: error: `AddToCache' was not declared in this scope
../src/common/fs_arc.cpp:186: warning: unused variable 'AddToCache'
../src/common/fs_arc.cpp:183: warning: unused variable 'wxArchiveEntry'
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:206: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:207: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp:208: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:209: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp:209: error:
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)' and
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)' cannot be overloaded
../src/common/fs_arc.cpp:216: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
../src/common/fs_arc.cpp:216: error: expected `;' before '*' token
../src/common/fs_arc.cpp:217: error: expected `;' before "wxInputStream"
../src/common/fs_arc.cpp:226: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:228: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)':
../src/common/fs_arc.cpp:228: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:228: error: `backer' was not declared in this scope
../src/common/fs_arc.cpp:228: warning: unused variable 'factory'
../src/common/fs_arc.cpp:228: warning: unused variable 'backer'
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:233: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:235: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp:235: error: redefinition of
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)'
../src/common/fs_arc.cpp:228: error:
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)' previously defined here
../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)':
../src/common/fs_arc.cpp:235: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:235: error: `stream' was not declared in this scope
../src/common/fs_arc.cpp:235: warning: unused variable 'factory'
../src/common/fs_arc.cpp:235: warning: unused variable 'stream'
../src/common/fs_arc.cpp: At global scope:
../src/common/fs_arc.cpp:278: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:279: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp:289: error: expected `,' or `...' before '&' token
../src/common/fs_arc.cpp:291: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
../src/common/fs_arc.cpp: In member function `wxArchiveFSCacheData*
wxArchiveFSCache::Add(const wxString&, int)':
../src/common/fs_arc.cpp:294: error: `stream' was not declared in this scope
../src/common/fs_arc.cpp:295: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:295: warning: unused variable 'factory'
../src/common/fs_arc.cpp:297: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:297: warning: unused variable 'factory'
../src/common/fs_arc.cpp: In member function `virtual bool
wxArchiveFSHandler::CanOpen(const wxString&)':
../src/common/fs_arc.cpp:343: error: `wxArchiveClassFactory' has not been declared
../src/common/fs_arc.cpp:343: error: `Find' was not declared in this scope
../src/common/fs_arc.cpp:343: warning: unused variable 'Find'
../src/common/fs_arc.cpp: In member function `virtual wxFSFile*
wxArchiveFSHandler::OpenFile(wxFileSystem&, const wxString&)':
../src/common/fs_arc.cpp:368: error: expected initializer before '*' token
../src/common/fs_arc.cpp:369: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:369: error: `wxArchiveClassFactory' has not been declared
../src/common/fs_arc.cpp:369: error: `Find' was not declared in this scope
../src/common/fs_arc.cpp:383: error: `wxArchiveEntry' was not declared in this scope
../src/common/fs_arc.cpp:383: error: `entry' was not declared in this scope
../src/common/fs_arc.cpp:383: error: 'class wxArchiveFSCacheData' has no member
named 'Get'
../src/common/fs_arc.cpp:397: error: `wxArchiveInputStream' was not declared in
this scope
../src/common/fs_arc.cpp:397: error: `s' was not declared in this scope
../src/common/fs_arc.cpp:403: error: `wxZipClassFactory' has not been declared
../src/common/fs_arc.cpp:404: error: `wxZipInputStream' was not declared in this
scope
../src/common/fs_arc.cpp:404: error: expected primary-expression before ')' token
../src/common/fs_arc.cpp:404: error: expected `)' before "s"
../src/common/fs_arc.cpp:404: warning: unused variable 'wxZipInputStream'
../src/common/fs_arc.cpp:417: error: type `<type error>' argument given to
`delete', expected pointer
../src/common/fs_arc.cpp:369: warning: unused variable 'Find'
../src/common/fs_arc.cpp:383: warning: unused variable 'wxArchiveEntry'
../src/common/fs_arc.cpp:397: warning: unused variable 'wxArchiveInputStream'
../src/common/fs_arc.cpp: In member function `virtual wxString
wxArchiveFSHandler::FindFirst(const wxString&, int)':
../src/common/fs_arc.cpp:433: error: expected initializer before '*' token
../src/common/fs_arc.cpp:434: error: `factory' was not declared in this scope
../src/common/fs_arc.cpp:434: error: `wxArchiveClassFactory' has not been declared
../src/common/fs_arc.cpp:434: error: `Find' was not declared in this scope
../src/common/fs_arc.cpp:434: warning: unused variable 'Find'
../src/common/fs_arc.cpp: In member function `wxString
wxArchiveFSHandler::DoFind()':
../src/common/fs_arc.cpp:502: error: 'struct wxArchiveFSEntry' has no member
named 'entry'
make: *** [baselib_fs_arc.o] Error 1
Did I miss something ?
Regards.
--
Didier BRETIN
http://www.bretin.net/
More information about the wx-users
mailing list