Author Topic: code::Blocks and wxWidgets 2.8.0: problem compilation  (Read 4356 times)

Ryu

  • Guest
code::Blocks and wxWidgets 2.8.0: problem compilation
« on: February 02, 2007, 08:38:38 pm »
Hey, everybody,  good times for all

Now i have the last subversion revision: 3562 and I trying to compile it aganist the last oficial release of wxWidgets 2.8.0
I'm following the respectives directives (patchs) of the post about the fact, but i can't get it, i always get this:

g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/wx/2.8//lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wx/2.8//include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/scripting/include -I../../src/sdk/scripting/sqplus -I../../src/sdk/wxFlatNotebook/include -I../../src/sdk/propgrid/include -O2 -ffast-math -O3 -mmmx -march=pentium4 -funroll-loops -fexpensive-optimizations -fPIC -DPIC -MT editorconfigurationdlg.lo -MD -MP -MF .deps/editorconfigurationdlg.Tpo -c editorconfigurationdlg.cpp  -fPIC -DPIC -o .libs/editorconfigurationdlg.o
editorconfigurationdlg.cpp: In constructor `
   EditorConfigurationDlg::EditorConfigurationDlg(wxWindow*)':
editorconfigurationdlg.cpp:235: error: invalid use of undefined type `struct
   wxImageList'
/opt/wx/2.8/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration
   of `struct wxImageList'
editorconfigurationdlg.cpp:240: error: `Add' undeclared (first use this
   function)
editorconfigurationdlg.cpp:240: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
editorconfigurationdlg.cpp: In member function `void
   EditorConfigurationDlg::AddPluginPanels()':
editorconfigurationdlg.cpp:281: error: `Add' undeclared (first use this
   function)
editorconfigurationdlg.cpp:283: error: `GetImageCount' undeclared (first use
   this function)
editorconfigurationdlg.cpp: In member function `void
   EditorConfigurationDlg::UpdateSampleFont(bool)':
editorconfigurationdlg.cpp:488: warning: `__comp_ctor' is deprecated (declared
   at /opt/wx/2.8/include/wx-2.8/wx/gtk/fontdlg.h:48)


Please help, i read that other people can do it, so i want too.

Note: If you read the first part of the error you see that is a problem with wxWidgets itself, but how can the others
to compile ?

OS: Linux

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: code::Blocks and wxWidgets 2.8.0: problem compilation
« Reply #1 on: February 02, 2007, 09:39:49 pm »
I will see if I can fix this issue.
Please post your replies in the thread below, the building of Code::Blocks against wxWidgets 2.8.x is NOT officially supported yet.

Patches to compile and link C::B against wxWidgets 2.8.0
http://forums.codeblocks.org/index.php?topic=4495.105

This appears to be an pre compile of headers issue. I am working on issues with getting ready to compile codeblocks against wxW29 and also working on precomp issues. I will update this message when I find a patch for this issue. The other Linux users most likely patched it themselves by adding an include of <wx/imaglist.h>

Try my CB_PRECOMP-unix.patch patch on http://www.savefile.com/projects/1039215

Tim S
« Last Edit: February 02, 2007, 11:46:12 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org