News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

SVN 3738 does not compile under MSWindows

Started by Pecan, March 22, 2007, 07:20:51 PM

Previous topic - Next topic

Pecan

debuggergdb.cpp gets the following errors


mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN  -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -IC:\Usr\Proj\wxWidgets263\include -IC:\Usr\Proj\wxWidgets263\lib\gcc_dll\mswu -Iinclude\wxscintilla\include -Iinclude\propgrid\include -Iinclude\tinyxml -IC:\Usr\CodeBlocks\include -Ic:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb -Ic:\Usr\Proj\cbBeta\trunk\src -c c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp -o .objs\2.6\plugins\debuggergdb\debuggergdb.o
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp: In member function `virtual int DebuggerGDB::Debug()':
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:942: error: `platform' has not been declared
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:942: error: `windows' undeclared (first use this function)
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:942: error: (Each undeclared identifier is reported only once for each function it appears in.)
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp: In static member function `static void DebuggerGDB::ConvertToGDBDirectory(wxString&, wxString, bool)':
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:1119: error: `platform' has not been declared
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:1119: error: `windows' undeclared (first use this function)

c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:1159: error: `platform' has not been declared
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp: In member function `void DebuggerGDB::OnAddSymbolFile(wxCommandEvent&)':
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:1784: error: `compatibility' has not been declared
c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:1784: error: `wxHideReadonly' undeclared (first use this function)
Process terminated with status 1 (0 minutes, 13 seconds)
8 errors, 0 warnings




Biplab

Add prep.h to the file who is complaining.

But this should not happen. I've just compiled it. :)
Be a part of the solution, not a part of the problem.

Pecan

Quote from: Biplab on March 22, 2007, 07:26:51 PM
Add prep.h to the file who is complaining.

But this should not happen. I've just compiled it. :)

That causes some other errors.


mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN  -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -IC:\Usr\Proj\wxWidgets263\include -IC:\Usr\Proj\wxWidgets263\lib\gcc_dll\mswu -Iinclude\wxscintilla\include -Iinclude\propgrid\include -Iinclude\tinyxml -IC:\Usr\CodeBlocks\include -Ic:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb -Ic:\Usr\Proj\cbBeta\trunk\src -c c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp -o .objs\2.6\plugins\debuggergdb\debuggergdb.o
In file included from c:\Usr\Proj\cbBeta\trunk\src\plugins\debuggergdb\debuggergdb.cpp:63:
include/prep.h:20: error: redefinition of `template<class T> void Delete(T*&)'
c:\Usr\Proj\cbBeta\trunk\src\include\/safedelete.h:10: error: `template<class T> void Delete(T*&)' previously declared here
c:\Usr\Proj\cbBeta\trunk\src\include\/safedelete.h: In member function `void SeqDelete::operator()(T&) [with T = AbstractJob*]':
C:/Usr/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/stl_algo.h:158:   instantiated from `_Function std::for_each(_InputIterator, _InputIterator, _Function) [with _InputIterator = std::_Deque_iterator<AbstractJob*, AbstractJob*&, AbstractJob**>, _Function = SeqDelete]'
c:\Usr\Proj\cbBeta\trunk\src\include\/safedelete.h:19:   instantiated from `void Delete(std::deque<T, std::allocator<_CharT> >&) [with T = AbstractJob*]'
c:\Usr\Proj\cbBeta\trunk\src\include\/backgroundthread.h:188:   instantiated from here
c:\Usr\Proj\cbBeta\trunk\src\include\/safedelete.h:14: error: call of overloaded `Delete(AbstractJob*&)' is ambiguous
c:\Usr\Proj\cbBeta\trunk\src\include\/safedelete.h:10: note: candidates are: void Delete(T*&) [with T = AbstractJob]
include/prep.h:20: note:                 void Delete(T*&) [with T = AbstractJob]
Process terminated with status 1 (0 minutes, 10 seconds)
8 errors, 0 warnings



Pecan

Ok, I can't get pass this. I'll delete trunk and do a fresh checkout.

Pecan

Quote from: Pecan on March 22, 2007, 07:40:36 PM
Ok, I can't get pass this. I'll delete trunk and do a fresh checkout.


Ok, that did it.

Even though I did a rebuild, it seems the precompiled headers were not compatible with the new version, or else they were damaged.

This is the second time that's happened.

Biplab

Be a part of the solution, not a part of the problem.

thomas

I've had that happen a few times too. It seem precompiled headers are not always updated properly (though... no idea when and why).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Pecan