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

Re: Anjuta C++ Project problems



On Sun, 30 Jan 2005, TreeBoy wrote:

> On Saturday 29 Jan 2005 22:05, TreeBoy wrote:
> > 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.
> >
> 
> <snip>
> 
> Hello, again.
> 
> Thanks for the tips that have been sent. I should have gone ahead and 
> investigated these options already.
> 
> So, I've now got further by doing the boring grunt work that I should have
> been trying in the first place:
> 
> I've added includes as I've identified the need and have ended up with
> the following list which I have specified in "Settings|Compiler and
> Linker Settings|Include Paths"
> 
> /usr/include/gtkmm-2.0
> /usr/lib/gtkmm-2.0/include
> /usr/include/sigc++-1.2
> /usr/lib/sigc++-1.2/include
> /usr/include/libgnomemm-2.0
> /usr/include/libgnomeuimm-2.0
> /usr/include/libbonobouimm-2.0
> 
> And hurrah - no more unresolved symbols!
> 
> But - alas, now I have undefined references as can bee seen here:
> 
> ** BEGIN

[ ... snip ...]

> g++ -Wall -g -o tryagainplus window1_glade.o window1.o tryagainplus.o
> -Wl,--export-dynamic  -pthread -L/usr/X11R6/lib /usr/lib/libgnomeui-2.so
> -lSM -lICE /usr/lib/libbonoboui-2.so /usr/lib/libxml2.so -lpthread
> -lz /usr/lib/libgnomecanvas-2.so /usr/lib/libgnome-2.so /usr/lib/libpopt.so /usr/lib/libart_lgpl_2.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgnomevfs-2.so /usr/lib/libbonobo-2.so /usr/lib/libgconf-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBit-2.so /usr/lib/libgthread-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so 
> -lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so 
> -ldl /usr/lib/libglib-2.0.so
> window1_glade.o(.text+0x20): In function
> `window1_glade::window1_glade[not-in-charge]()':
> /usr/include/gtkmm-2.0/glibmm/value.h:294: undefined reference to
> `Gtk::Window::Window[not-in-charge](Gtk::WindowType)'
> window1_glade.o(.text+0x8b): In function
> `window1_glade::window1_glade[not-in-charge]()':
> /usr/include/gtkmm-2.0/glibmm/propertyproxy.h:119: undefined reference
> to `Gtk::Window::get_accel_group()'
> window1_glade.o(.text+0x112): In function
> `window1_glade::window1_glade[not-in-charge]()':
> /home/peter/Projects/TryAgainPlus/src/window1_glade.cc:27: undefined
> reference to `Glib::ustring::ustring[in-charge](char const*)'
> window1_glade.o(.text
> +0x124):/home/peter/Projects/TryAgainPlus/src/window1_glade.cc:27:
> undefined reference to `Gtk::Window::set_title(Glib::ustring const&)'
> window1_glade.o(.text
> +0x137):/home/peter/Projects/TryAgainPlus/src/window1_glade.cc:27:
> undefined reference to `Glib::ustring::~ustring [in-charge]()'
> window1_glade.o(.text
> +0x14a):/home/peter/Projects/TryAgainPlus/src/window1_glade.cc:27:
> undefined reference to `Glib::ustring::~ustring [in-charge]()'
> window1_glade.o(.text
> +0x165):/home/peter/Projects/TryAgainPlus/src/window1_glade.cc:28:
> undefined reference to `Gtk::Window::set_default_size(int, int)'
> window1_glade.o(.text
> +0x178):/home/peter/Projects/TryAgainPlus/src/window1_glade.cc:29:
> undefined reference to `Gtk::Window::set_modal(bool)'
> window1_glade.o(.text
> +0x18a):/home/peter/Projects/TryAgainPlus/src/window1_glade.cc:30:
> undefined reference to `Gtk::Window::property_window_position()'
> window1_glade.o(.text
> +0x1b9):/home/peter/Projects/TryAgainPlus/src/window1_glade.cc:31:
> undefined reference to `Gtk::Window::set_resizable(bool)'
> window1_glade.o(.text
> 

Looks like you are not linking against the needed libraries. The errors 
now are about undefined symbols in the objects (link time), not at compile 
time.

I'm just guessing here as I don't work with gnome or glade, but from 
glade's dependencies and the unresolved names you probably need to add
-Lglib-2.0 -Lgtk-x11-2.0

> <snip>
> ** END
> 
> I'm now stumped again.
> 
> (Forgive me if this is a second post of this message - I appear not to be 
> seeing some messages - another set of questions no doubt!)
> 
> Regards,
> TreeBoy
> 
> 
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 



Reply to: