Bug #17321 2010-07-01 18:29
dirtyepic
Cscope plugin fails to build
trunk rev. 6379 Gentoo Linux GCC 4.5.0 wxGTK-2.8.11.0 ./configure --prefix=/usr --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-wx-config=/usr/lib64/wx/config/gtk2-unicode-release-2.8 --disable-dependency-tracking --disable-debug --disable-static --disable-pch --with-contrib-plugins=all libtool: compile: x86_64-unknown-linux-gnu-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 -march=core2 -msse4.1 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=generic -pipe -fno-strict-aliasing -fPIC -DPIC -fexceptions -c CscopeTab.cpp -fPIC -DPIC -o .libs/CscopeTab.o In file included from CscopePlugin.cpp:5: CscopePlugin.h:145: error: 'wxProcessEvent' has not been declared CscopePlugin.cpp: In member function 'virtual void CscopePlugin::OnAttach()': CscopePlugin.cpp:76: error: invalid static_cast from type 'void (CscopePlugin::*)(int&)' to type 'void (wxEvtHandler::*)(wxProcessEvent&)' CscopePlugin.cpp: In member function 'virtual void CscopePlugin::OnRelease(bool)': CscopePlugin.cpp:105: error: invalid static_cast from type 'void (CscopePlugin::*)(int&)' to type 'void (wxEvtHandler::*)(wxProcessEvent&)' CscopePlugin.cpp: In member function 'virtual void CscopePlugin::BuildModuleMenu(ModuleType, wxMenu*, const FileTreeData*)': CscopePlugin.cpp:152: error: invalid use of incomplete type 'struct EditorManager' ../../../../src/include/manager.h:27: error: forward declaration of 'struct EditorManager' CscopePlugin.cpp:153: error: invalid use of incomplete type 'struct EditorBase' ../../../../src/include/sdk_events.h:14: error: forward declaration of 'struct EditorBase' CscopePlugin.cpp:155: error: invalid use of incomplete type 'struct cbEditor' ../../../../src/include/cbplugin.h:47: error: forward declaration of 'struct cbEditor' CscopePlugin.cpp: In member function 'bool CscopePlugin::CreateListFile(wxString&)': CscopePlugin.cpp:222: error: invalid use of incomplete type 'struct ProjectManager' ../../../../src/include/manager.h:26: error: forward declaration of 'struct ProjectManager' CscopePlugin.cpp:228: error: invalid use of incomplete type 'struct cbProject' ../../../../src/include/sdk_events.h:13: error: forward declaration of 'struct cbProject' CscopePlugin.cpp:230: error: invalid use of incomplete type 'struct cbProject' ../../../../src/include/sdk_events.h:13: error: forward declaration of 'struct cbProject' CscopePlugin.cpp:235: error: invalid use of incomplete type 'struct cbProject' ../../../../src/include/sdk_events.h:13: error: forward declaration of 'struct cbProject' CscopePlugin.cpp:237: error: invalid use of incomplete type 'struct cbProject' ../../../../src/include/sdk_events.h:13: error: forward declaration of 'struct cbProject' CscopePlugin.cpp: In member function 'void CscopePlugin::DoCscopeCommand(const wxString&, const wxString&)': CscopePlugin.cpp:265: error: invalid use of incomplete type 'struct ProjectManager' ../../../../src/include/manager.h:26: error: forward declaration of 'struct ProjectManager' CscopePlugin.cpp:268: error: invalid use of incomplete type 'struct cbProject' ../../../../src/include/sdk_events.h:13: error: forward declaration of 'struct cbProject' CscopePlugin.cpp:270: error: invalid use of incomplete type 'struct LogManager' ../../../../src/include/manager.h:28: error: forward declaration of 'struct LogManager' CscopePlugin.cpp:292: error: invalid use of incomplete type 'struct LogManager' ../../../../src/include/manager.h:28: error: forward declaration of 'struct LogManager' CscopePlugin.cpp: At global scope: CscopePlugin.cpp:295: error: prototype for 'void CscopePlugin::OnCscopeReturned(wxProcessEvent&)' does not match any in class 'CscopePlugin' CscopePlugin.h:145: error: candidate is: void CscopePlugin::OnCscopeReturned(int&) CscopePlugin.cpp: In member function 'wxString CscopePlugin::GetWordAtCaret()': CscopePlugin.cpp:326: error: invalid use of incomplete type 'struct EditorManager' ../../../../src/include/manager.h:27: error: forward declaration of 'struct EditorManager' CscopePlugin.cpp:330: error: invalid use of incomplete type 'struct cbEditor' ../../../../src/include/cbplugin.h:47: error: forward declaration of 'struct cbEditor' CscopePlugin.cpp: In member function 'void CscopePlugin::OnCscopeUI(wxUpdateUIEvent&)': CscopePlugin.cpp:383: error: invalid use of incomplete type 'struct EditorManager' ../../../../src/include/manager.h:27: error: forward declaration of 'struct EditorManager' CscopePlugin.cpp:384: error: invalid use of incomplete type 'struct ProjectManager' ../../../../src/include/manager.h:26: error: forward declaration of 'struct ProjectManager' make[4]: *** [CscopePlugin.lo] Error 1
- Category
- Plugin::Any
- Group
- Status
- Closed
- Close date
- 2010-07-03 07:27
- Assigned to
- killerbot
History
stahta01 2010-07-02 14:47
Most likely non-PCH errors; that can be fixed by adding this block of code after sdk.h include in file
CscopePlugin.cpp
#ifndef CB_PRECOMP
#include <wx/process.h>
#include "cbeditor.h"
#include "cbproject.h"
#include "editormanager.h"
#include "logmanager.h"
#include "manager.h"
#include "projectmanager.h"
#endif
Tim S.
dirtyepic 2010-07-02 23:14
Yes that fixes it, but I hit another error later in DoxyBlocks. I take it --disable-pch isn't the preferred way of building?
stahta01 2010-07-03 00:27
Posted NON-PCH Patch in the Nightly Build Forum
http://forums.codeblocks.org/index.php/topic,12593.msg86775.html#msg86775
killerbot 2010-07-03 07:27
should be fixed now, thanks for the feedback.