Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: polylux on January 31, 2011, 10:40:12 am

Title: CodeBlocks build fails (Gentoo, SVN)
Post by: polylux on January 31, 2011, 10:40:12 am
Good morning everyone!

It seems the latest SVN version of CodeBlocks fails to build. It happens in the source file cbauibook.cpp where it seems to be missing the definitions of the structs ConfigManager and EditorManager generating a lot of subsequent errors.
This is the compiler output:
Code
cbauibook.cpp: In constructor 'cbAuiNotebook::cbAuiNotebook(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, long int)':
cbauibook.cpp:69: error: invalid use of incomplete type 'struct ConfigManager'
../../src/include/manager.h:38: error: forward declaration of 'struct ConfigManager'
If this is based on my Gentoo noobishness and hence my fault, please excuse. If not, maybe this is of interest for you.

Cheers,
p.
Title: Re: CodeBlocks build fails (Gentoo, SVN)
Post by: jens on January 31, 2011, 10:49:55 am
Good morning everyone!

It seems the latest SVN version of CodeBlocks fails to build. It happens in the source file cbauibook.cpp where it seems to be missing the definitions of the structs ConfigManager and EditorManager generating a lot of subsequent errors.
This is the compiler output:
Code
cbauibook.cpp: In constructor 'cbAuiNotebook::cbAuiNotebook(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, long int)':
cbauibook.cpp:69: error: invalid use of incomplete type 'struct ConfigManager'
../../src/include/manager.h:38: error: forward declaration of 'struct ConfigManager'
If this is based on my Gentoo noobishness and hence my fault, please excuse. If not, maybe this is of interest for you.

Cheers,
p.

It's due to missing headers in non-pch build.
Should be fixed in svn r6947.
Title: Re: CodeBlocks build fails (Gentoo, SVN)
Post by: polylux on January 31, 2011, 02:57:27 pm
Thank you for your fast reply, jens!
Indeed it gets a bit further but now it fails at:
Code
libtool: compile:  x86_64-pc-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 -I../../src/sdk/wxpropgrid/include -I../../src/include/tinyxml -I../../src/include/scripting/include -I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -march=core2 -mtune=generic -O2 -pipe -fno-strict-aliasing -fPIC -DPIC -fexceptions -MT cbexception.lo -MD -MP -MF .deps/cbexception.Tpo -c cbexception.cpp  -fPIC -DPIC -o .libs/cbexception.o
cbeditor.cpp: In member function 'void cbEditor::OnZoom(wxScintillaEvent&)':
cbeditor.cpp:3429: error: invalid use of incomplete type 'struct cbAuiNotebook'
../../src/include/projectmanager.h:30: error: forward declaration of 'struct cbAuiNotebook'

Seems to be a follow-up error.
Title: Re: CodeBlocks build fails (Gentoo, SVN)
Post by: jens on January 31, 2011, 03:18:34 pm
Same cause and I found some more.
Should be fixed in svn r6949 (at least for core C::B).
Title: Re: CodeBlocks build fails (Gentoo, SVN)
Post by: polylux on January 31, 2011, 03:44:50 pm
Great, now everything's fine!

Thank you!
Title: Re: CodeBlocks build fails (Gentoo, SVN)
Post by: meil on February 28, 2011, 06:14:15 am
Hi
I have the same issue in all versions after 6951.
Code
projectfileoptionsdlg.cpp: In member function ‘void ProjectFileOptionsDlg::OnReadOnlyCheck(wxCommandEvent&)’:
projectfileoptionsdlg.cpp:246: ошибка: invalid use of incomplete type ‘struct EditorManager’
../../src/include/manager.h:27: ошибка: forward declaration of ‘struct EditorManager’
make[3]: *** [projectfileoptionsdlg.lo] Ошибка 1
Title: Re: CodeBlocks build fails (Gentoo, SVN)
Post by: stahta01 on February 28, 2011, 01:22:50 pm
@meil
Patch needed for NON-PCH Type Build under Windows (CB_PRECOMP and WX_PRECOMP not defined and NOPCH is defined)

Tim S.

Code
Index: src/sdk/projectfileoptionsdlg.cpp
===================================================================
--- src/sdk/projectfileoptionsdlg.cpp (revision 7028)
+++ src/sdk/projectfileoptionsdlg.cpp (working copy)
@@ -12,6 +12,7 @@
 #ifndef CB_PRECOMP
     #include "cbproject.h"
     #include "compilerfactory.h"
+    #include "editormanager.h"
     #include "logmanager.h"
     #include "projectmanager.h"
     #include <wx/xrc/xmlres.h>