User forums > Using Code::Blocks
Problem compiling C::B w/ wxGTK 2.8.0
diilbert:
I am trying to build Code:Blocks SVN (today) with wxGTK 2.8.0 and am getting errors with make when compiling codesnippet plugin contrib.
I am using Debian 4.0 w/ wxGTK 2.8.0 Unicode/monolith.
Any direction would be appreciated, thanks ;)
Diilbert
Auria:
Whenever you get errors, posting these errors is a good idea.
stahta01:
Try this patch, I am using it against 2.8 CVS Branch, 2.8.0 may need more patches.
Tim S
--- Code: ---Index: src/plugins/contrib/codesnippets/codesnippetstreectrl.h
===================================================================
--- src/plugins/contrib/codesnippets/codesnippetstreectrl.h (revision 3869)
+++ src/plugins/contrib/codesnippets/codesnippetstreectrl.h (working copy)
@@ -40,7 +40,7 @@
#endif
WX_DEFINE_ARRAY(wxDialog*, DlgPtrArray);
-WX_DEFINE_ARRAY(int, DlgRetcodeArray);
+WX_DEFINE_ARRAY_INT(int, DlgRetcodeArray);
// ----------------------------------------------------------------------------
class CodeSnippetsTreeCtrl : public wxTreeCtrl
--- End code ---
Pecan:
--- Quote from: stahta01 on April 22, 2007, 04:15:57 am ---Try this patch, I am using it against 2.8 CVS Branch, 2.8.0 may need more patches.
Tim S
--- Code: ---Index: src/plugins/contrib/codesnippets/codesnippetstreectrl.h
===================================================================
--- src/plugins/contrib/codesnippets/codesnippetstreectrl.h (revision 3869)
+++ src/plugins/contrib/codesnippets/codesnippetstreectrl.h (working copy)
@@ -40,7 +40,7 @@
#endif
WX_DEFINE_ARRAY(wxDialog*, DlgPtrArray);
-WX_DEFINE_ARRAY(int, DlgRetcodeArray);
+WX_DEFINE_ARRAY_INT(int, DlgRetcodeArray);
// ----------------------------------------------------------------------------
class CodeSnippetsTreeCtrl : public wxTreeCtrl
--- End code ---
--- End quote ---
Will include in next commit.
BerliOS still down.
diilbert:
Sorry I forgot about that, here are the errors I am getting:
--- Code: ---In file included from codesnippets.cpp:42:
/usr/local/include/wx-2.8/wx/gtk/win_gtk.h:18:30: error: gtk/gtkcontainer.h: No such file or directory
codesnippetstreectrl.h: In member function 'void DlgRetcodeArray::resize(size_t, _wxArrayDlgRetcodeArray)':
codesnippetstreectrl.h:43: error: invalid conversion from '_wxArrayDlgRetcodeArray' to 'const void*'
codesnippetstreectrl.h:43: error: initializing argument 2 of 'void wxBaseArrayPtrVoid::resize(size_t, const void*)'
/usr/local/include/wx-2.8/wx/gtk/win_gtk.h: At global scope:
/usr/local/include/wx-2.8/wx/gtk/win_gtk.h:29: error: 'GtkContainer' does not name a type
/usr/local/include/wx-2.8/wx/gtk/win_gtk.h:30: error: ISO C++ forbids declaration of 'GList' with no type
/usr/local/include/wx-2.8/wx/gtk/win_gtk.h:30: error: expected ';' before '*' token
/usr/local/include/wx-2.8/wx/gtk/win_gtk.h:39: error: 'GtkType' does not name a type
codesnippets.cpp: In member function 'void CodeSnippets::OnTreeCtrlEvent(wxTreeEvent&)':
codesnippets.cpp:829: error: 'GDK_ROOT_PARENT' was not declared in this scope
codesnippets.cpp:829: error: 'GDK_WINDOW_XDISPLAY' was not declared in this scope
codesnippets.cpp:831: error: 'GDK_WINDOW_XID' was not declared in this scope
codesnippets.cpp:836: error: 'GdkDisplay' was not declared in this scope
codesnippets.cpp:836: error: 'display' was not declared in this scope
codesnippets.cpp:836: error: 'gdk_display_get_default' was not declared in this scope
codesnippets.cpp:838: error: 'gdk_display_get_window_at_pointer' was not declared in this scope
codesnippets.cpp:841: error: 'GdkEventButton' was not declared in this scope
codesnippets.cpp:841: error: expected `;' before 'evb'
codesnippets.cpp:842: error: 'evb' was not declared in this scope
codesnippets.cpp:843: error: 'GDK_BUTTON_RELEASE' was not declared in this scope
codesnippets.cpp:847: error: 'GDK_BUTTON1_MASK' was not declared in this scope
codesnippets.cpp:850: error: 'GdkEvent' was not declared in this scope
codesnippets.cpp:850: error: expected primary-expression before ')' token
codesnippets.cpp:850: error: 'gdk_display_put_event' was not declared in this scope
make[5]: *** [codesnippets.lo] Error 1
make[5]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins/contrib/codesnippets'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins/contrib/codesnippets'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hillsro/svn/codeblocks/src'
make: *** [all-recursive] Error 1
--- End code ---
Just to note I have applied the patch mentioned here as well.
Thanks again ;)
stahta01: that patch didn't fix my problem (since I never posted errors you had no idea what my problem was ;)
Navigation
[0] Message Index
[#] Next page
Go to full version