User forums > General (but related to Code::Blocks)
CodeBlocks build fails (Gentoo, SVN)
polylux:
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'
--- End code ---
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.
Jenna:
--- Quote from: 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'
--- End code ---
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.
--- End quote ---
It's due to missing headers in non-pch build.
Should be fixed in svn r6947.
polylux:
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'
--- End code ---
Seems to be a follow-up error.
Jenna:
Same cause and I found some more.
Should be fixed in svn r6949 (at least for core C::B).
polylux:
Great, now everything's fine!
Thank you!
Navigation
[0] Message Index
[#] Next page
Go to full version