Skip to content

Build Error in code::blocks 17.02 #9

Description

@crobarcro

I just tried to build the plugin in code::blocks 17.02 on Ubuntu 16.04, but get the following error:

error: ‘virtual void wxEvtHandler::AddPendingEvent(const wxEvent&)’ is inaccessible

I built code::blocks myself from source. The full build log for your plugin is below. To build it I just did 'buld workspace'. Incidentally, when I first opened the workspace there was an issue with there being no global variable 'cb' set. I created one and set the base value to /home/rcrozier/src/codeblocks-17.12/src/include/. I've never used global variables before, so I'm not sure if this is correct.

-------------- Clean: LibCommon in XmlRpcEmbedder (compiler: GNU GCC Compiler)---------------

Cleaned "XmlRpcEmbedder - LibCommon"

-------------- Clean: default in PythonCodeCompletion (compiler: GNU GCC Compiler)---------------

Cleaned "PythonCodeCompletion - default"

-------------- Clean: default in PythonInterpreter (compiler: GNU GCC Compiler)---------------

Cleaned "PythonInterpreter - default"

-------------- Clean: default in PythonDebugger-Unix (compiler: GNU GCC Compiler)---------------

Cleaned "PythonDebugger-Unix - default"

-------------- Build: LibCommon in XmlRpcEmbedder (compiler: GNU GCC Compiler)---------------

g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/ExecHiddenMSW.cpp -o .objs/ExecHiddenMSW.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcClient.cpp -o .objs/XMLRPC/src/XmlRpcClient.o
/home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcClient.cpp: In member function ‘virtual std::__cxx11::string XmlRpc::XmlRpcClient::generateHeader(const string&)’:
/home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcClient.cpp:254:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::__cxx11::basic_string<char>::size_type {aka long unsigned int}’ [-Wformat=]
   sprintf(buff,"%d\r\n\r\n", body.size());
                                         ^
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcDispatch.cpp -o .objs/XMLRPC/src/XmlRpcDispatch.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcServer.cpp -o .objs/XMLRPC/src/XmlRpcServer.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcServerConnection.cpp -o .objs/XMLRPC/src/XmlRpcServerConnection.o
/home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcServerConnection.cpp: In member function ‘std::__cxx11::string XmlRpc::XmlRpcServerConnection::generateHeader(const string&)’:
/home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcServerConnection.cpp:350:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::__cxx11::basic_string<char>::size_type {aka long unsigned int}’ [-Wformat=]
   sprintf(buffLen,"%d\r\n\r\n", body.size());
                                            ^
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcServerMethod.cpp -o .objs/XMLRPC/src/XmlRpcServerMethod.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcSocket.cpp -o .objs/XMLRPC/src/XmlRpcSocket.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcSource.cpp -o .objs/XMLRPC/src/XmlRpcSource.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcUtil.cpp -o .objs/XMLRPC/src/XmlRpcUtil.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/XMLRPC/src/XmlRpcValue.cpp -o .objs/XMLRPC/src/XmlRpcValue.o
g++ -ansi -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -IXMLRPC/include -c /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/xmlrpc_embedder.cpp -o .objs/xmlrpc_embedder.o
In file included from /usr/include/wx-3.0/wx/app.h:19:0,
                 from /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/xmlrpc_embedder.h:4,
                 from /home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/xmlrpc_embedder.cpp:3:
/usr/include/wx-3.0/wx/event.h: In member function ‘void XmlRpcInstance::OnEndProcess(wxProcessEvent&)’:
/usr/include/wx-3.0/wx/event.h:3387:18: error: ‘virtual void wxEvtHandler::AddPendingEvent(const wxEvent&)’ is inaccessible
     virtual void AddPendingEvent(const wxEvent& event)
                  ^
/home/rcrozier/src/codeblocks-python-git/XmlRpcEmbedder/xmlrpc_embedder.cpp:463:37: error: within this context
         m_parent->AddPendingEvent(ce);
                                     ^
Process terminated with status 1 (0 minute(s), 2 second(s))
2 error(s), 2 warning(s) (0 minute(s), 2 second(s))
 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions