[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Anjuta C++ Project problems



Hello.

I've had great fun and games getting the "Project Wizard" to run.

After three months (not concertedly!) I've discovered that if you do not
install CVS, then the C projects will not be generated! Install CVS and
everythingn is fine.

But now, C++ projects do generate but cannot be compiled!

If I specify a "Gnome 2.0 Project" and then select "C++" as the language
and select "use glade or glademm to generate code" any build always
fails.

I have been all over http/nntp trying to find an answer but the most
consistent conclusion that I find is that "there is a bug in
Glade/GladeMM: raise it with the maintainers".

I'm willing to do this only once I have proven that I am not having the
same blindness I had with CVS.

The specific message I get is:

**BEGIN

Building source directory of the Project: TryAgainPlus ...
make 
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -DXTHREADS
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/libxml2     -Wall 	 -g  -c window1_glade.cc
In file included from window1_glade.cc:17:
window1_glade.hh:16:30: gtkmm/accelgroup.h: No such file or directory
In file included from window1_glade.cc:17:
window1_glade.hh:21: error: syntax error before `::' token
window1_glade.hh:24: error: parse error before `::' token
window1_glade.hh:26: error: missing ';' before right brace
window1_glade.hh:28: error: ISO C++ forbids defining types within return
type
window1_glade.hh:28: error: syntax error before `::' token
window1_glade.hh:34:26: gtkmm/window.h: No such file or directory
window1_glade.hh:36: error: `Gtk' is not a class or namespace
window1_glade.hh:37: error: `Window' is not a class or namespace
window1_glade.hh:37: error: invalid base-class specification
window1_glade.cc:19:30: gtkmm/accelgroup.h: No such file or directory
window1_glade.cc: In constructor `window1_glade::window1_glade()':
window1_glade.cc:22: error: `Gtk' is not a class or namespace
window1_glade.cc:22: error: `Window' is not a class or namespace
window1_glade.cc:22: error: class `window1_glade' does not have any
field named 
   `Gtk'
window1_glade.cc:22: error: `Gtk' undeclared (first use this function)
window1_glade.cc:22: error: (Each undeclared identifier is reported only
once 
   for each function it appears in.)
window1_glade.cc:22: error: parse error before `::' token
window1_glade.cc:26: error: `get_accel_group' undeclared (first use
this 
   function)
window1_glade.cc:27: error: `window1' undeclared (first use this
function)
window1_glade.cc:30: error: parse error before `::' token
make: *** [window1_glade.o] Error 1
Completed ... unsuccessful
Total time taken: 5 secs

** END

I presume that I have to add a library to the path, but I'm not sure
which or how to do it.

When I try to find this accelgroup.h, I get:

/usr/include/gtk-1.2/gtk/gtkaccelgroup.h
/usr/include/gtk-2.0/gtk/gtkaccelgroup.h
/usr/include/gtk--/accelgroup.h
/usr/include/gtkmm-2.0/gtkmm/accelgroup.h


If anyone can help, I shall be immensely greatful.

Thanks in advance/anticipation.

Regards,
TreeBoy



Reply to: