rev 8466 fails to build on RHEL-6 with gcc 4.4.6, rev 8455 was fine, it throws now
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_
LARGE_FILES -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -
Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpermissive -fno-strict-aliasing -DCB_PRECOMP -Winvalid-pch -fPIC
-DPIC -fexceptions -MT DoxyBlocks.lo -MD -MP -MF .deps/DoxyBlocks.Tpo -c DoxyBlocks.cpp -fPIC -DPIC -o .libs/DoxyBlocks.o
DoxyBlocks.cpp: In member function 'virtual void DoxyBlocks::BuildMenu(wxMenuBar*)':
DoxyBlocks.cpp:477: error: invalid static_cast from type '<unresolved overloaded function type>' to type 'void (wxEvtHandler::*)(wxCommandEvent&)'
DoxyBlocks.cpp: In member function 'virtual bool DoxyBlocks::BuildToolBar(wxToolBar*)':
DoxyBlocks.cpp:548: error: invalid static_cast from type '<unresolved overloaded function type>' to type 'void (wxEvtHandler::*)(wxCommandEvent&)'
...
rev 8466 fails to build on RHEL-6 with gcc 4.4.6, rev 8455 was fine, it throws now
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_
LARGE_FILES -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -O2 -g -pipe -Wall -
Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpermissive -fno-strict-aliasing -DCB_PRECOMP -Winvalid-pch -fPIC
-DPIC -fexceptions -MT DoxyBlocks.lo -MD -MP -MF .deps/DoxyBlocks.Tpo -c DoxyBlocks.cpp -fPIC -DPIC -o .libs/DoxyBlocks.o
DoxyBlocks.cpp: In member function 'virtual void DoxyBlocks::BuildMenu(wxMenuBar*)':
DoxyBlocks.cpp:477: error: invalid static_cast from type '<unresolved overloaded function type>' to type 'void (wxEvtHandler::*)(wxCommandEvent&)'
DoxyBlocks.cpp: In member function 'virtual bool DoxyBlocks::BuildToolBar(wxToolBar*)':
DoxyBlocks.cpp:548: error: invalid static_cast from type '<unresolved overloaded function type>' to type 'void (wxEvtHandler::*)(wxCommandEvent&)'
...
Can you test the following patch:
Index: src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp
===================================================================
--- src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp
+++ src/plugins/contrib/DoxyBlocks/DoxyBlocks.cpp
@@ -337,10 +337,10 @@
void DoxyBlocks::Configure(wxCommandEvent & WXUNUSED(event))
{
- Configure();
+ DoConfigure();
}
-int DoxyBlocks::Configure()
+int DoxyBlocks::DoConfigure()
{
//create and display the configuration dialog for your plugin
cbConfigurationDialog dlg(Manager::Get()->GetAppWindow(), wxID_ANY, _("DoxyBlocks"));
Index: src/plugins/contrib/DoxyBlocks/DoxyBlocks.h
===================================================================
--- src/plugins/contrib/DoxyBlocks/DoxyBlocks.h
+++ src/plugins/contrib/DoxyBlocks/DoxyBlocks.h
@@ -77,7 +77,7 @@
/** Invoke configuration dialog.
* @return The configuration dialogue's return value.
*/
- virtual int Configure();
+ virtual int DoConfigure();
/** Return the plugin's configuration priority.
* This is a number (default is 50) that is used to sort plugins
Warning on CB Trunk SVN 8468
||=== Code::Blocks wx2.8.x, src ===|
src\src\breakpointsdlg.cpp|10|warning: .objs\include/sdk_precomp.h.gch: not used because `EXPORT_LIB' not defined [-Winvalid-pch]|
Possible patch; still waiting for CB to finish Compiling; before I can test the obvious patch.
Very sleepy, I might be wrong.
edit: Finally got to test the patch the warning went away.
Note: This is likely Windows only warning that requires the option "-Winvalid-pch" for it to be seen.
Index: src/src/breakpointsdlg.cpp
===================================================================
--- src/src/breakpointsdlg.cpp (revision 8468)
+++ src/src/breakpointsdlg.cpp (working copy)
@@ -7,7 +7,7 @@
* $HeadURL$
*/
-#include "sdk_precomp.h"
+#include "sdk.h"
#ifndef CB_PRECOMP
# include <algorithm>
Tim S.