Author Topic: CodeBlocks build fails (Gentoo, SVN)  (Read 4983 times)

Offline polylux

  • Single posting newcomer
  • *
  • Posts: 7
CodeBlocks build fails (Gentoo, SVN)
« 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: [Select]
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.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: CodeBlocks build fails (Gentoo, SVN)
« Reply #1 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: [Select]
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.

Offline polylux

  • Single posting newcomer
  • *
  • Posts: 7
Re: CodeBlocks build fails (Gentoo, SVN)
« Reply #2 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: [Select]
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.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: CodeBlocks build fails (Gentoo, SVN)
« Reply #3 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).

Offline polylux

  • Single posting newcomer
  • *
  • Posts: 7
Re: CodeBlocks build fails (Gentoo, SVN)
« Reply #4 on: January 31, 2011, 03:44:50 pm »
Great, now everything's fine!

Thank you!

Offline meil

  • Single posting newcomer
  • *
  • Posts: 1
Re: CodeBlocks build fails (Gentoo, SVN)
« Reply #5 on: February 28, 2011, 06:14:15 am »
Hi
I have the same issue in all versions after 6951.
Code: [Select]
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
« Last Edit: February 28, 2011, 06:17:22 am by meil »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: CodeBlocks build fails (Gentoo, SVN)
« Reply #6 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: [Select]
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>
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org