Code::Blocks Forums
User forums => Help => Topic started by: vesselin_peev on August 03, 2006, 04:16:13 pm
-
It built fine up to this SVN revision. gcc 3.4.4 used.
gdb_tipwindow.cpp:40:25: gtk/gtk.h: No such file or directory
gdb_tipwindow.cpp: In constructor `GDBTipWindow::GDBTipWindow(wxWindow*, const wxString&, const wxString&, const wxString&, wxCoord, GDBTipWindow**, wxRect*)':
gdb_tipwindow.cpp:186: error: `GTK_WIDGET_HAS_GRAB' undeclared (first use this function)
gdb_tipwindow.cpp:186: error: (Each undeclared identifier is reported only oncefor each function it appears in.)
gdb_tipwindow.cpp:187: error: `gtk_grab_add' undeclared (first use this function)
gdb_tipwindow.cpp: In destructor `virtual GDBTipWindow::~GDBTipWindow()':
gdb_tipwindow.cpp:203: error: `GTK_WIDGET_HAS_GRAB' undeclared (first use this function)
gdb_tipwindow.cpp:204: error: `gtk_grab_remove' undeclared (first use this function)
gdb_tipwindow.cpp: In member function `void GDBTipWindow::Close()':
gdb_tipwindow.cpp:257: error: `GTK_WIDGET_HAS_GRAB' undeclared (first use this function)
gdb_tipwindow.cpp:258: error: `gtk_grab_remove' undeclared (first use this function)
make[4]: *** [gdb_tipwindow.lo] Error 1
-
I can confirm this with gcc 3.4.6 on gentoo. It seems as if the include-directory for gtk is missing thus gcc cannot find gtk/gtk.h.
-
Yes, the first error is obviously the cause for all the rest. Perhaps some include paths have been removed from the build scripts? I have gtk.h in /usr/include/gtk-2.0/gtk/gtk.h.
-
No, they have not been removed. They never were there as Code::Blocks normally does not use GTK directly, it just uses wxGTK.
Unfortunately I'm not that familiar with autotools to correctly add this include-directory to the makefiles or to the configure script.
-
Sorry for this. I 'll fix this in a while...
-
Mandrav, thank you.
-
Revision 2810 should build just fine.
-
After a distclean, building 2810 fails with "src/plugins/debuggergdb/Makefile.am:16: linker flags such as `--libs' belong in`libdebuggergdb_la_LDFLAGS
make[3]: *** [Makefile.in] Error 1".
-
Darn, I couldn't test it before.
Moved it where it suggested and commited again. Let's hope it works now :o
-
Darn, I couldn't test it before.
Moved it where it suggested and commited again. Let's hope it works now :o
Debuggergdb in rev2811 compiles fine for me. :)