Author Topic: SVN 3738 does not compile under MSWindows  (Read 6688 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2832
SVN 3738 does not compile under MSWindows
« on: March 22, 2007, 07:20:51 pm »
debuggergdb.cpp gets the following errors

Code
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
 

« Last Edit: March 22, 2007, 07:28:07 pm by Pecan »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: SVN 3738 does not compile under MSWindows
« Reply #1 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. :)
Be a part of the solution, not a part of the problem.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2832
Re: SVN 3738 does not compile under MSWindows
« Reply #2 on: March 22, 2007, 07:33:29 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.

Code
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
 


Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2832
Re: SVN 3738 does not compile under MSWindows
« Reply #3 on: March 22, 2007, 07:40:36 pm »
Ok, I can't get pass this. I'll delete trunk and do a fresh checkout.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2832
Re: SVN 3738 does not compile under MSWindows
« Reply #4 on: March 22, 2007, 07:59:23 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.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: SVN 3738 does not compile under MSWindows
« Reply #5 on: March 22, 2007, 08:09:03 pm »
Is it compiling now?  :)
Be a part of the solution, not a part of the problem.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: SVN 3738 does not compile under MSWindows
« Reply #6 on: March 22, 2007, 08:24:56 pm »
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."

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2832
Re: SVN 3738 does not compile under MSWindows
« Reply #7 on: March 22, 2007, 08:47:06 pm »
Is it compiling now?  :)

Affirmative, thanks