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

Re: Anjuta C++ Project problems



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
Building source directory of the Project: TryAgainPlus ...
make clean all 
cd .. && automake-1.4 --gnu src/Makefile
cd .. \
  && CONFIG_FILES=src/Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating src/Makefile
config.status: executing default-1 commands
config.status: executing default-2 commands
test -z "tryagainplus" || rm -f tryagainplus
rm -rf .libs _libs
rm -f *.o core *.core
rm -f *.o
rm -f *.lo
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           -I/usr/include/gtkmm-2.0
-I/usr/lib/gtkmm-2.0/include -I/usr/include/sigc++-1.2 -I/usr/lib/sigc
++-1.2/include -I/usr/include/libgnomemm-2.0
-I/usr/include/libgnomeuimm-2.0 -I/usr/include/libbonobouimm-2.0   -Wall
-g  -c window1_glade.cc
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           -I/usr/include/gtkmm-2.0
-I/usr/lib/gtkmm-2.0/include -I/usr/include/sigc++-1.2 -I/usr/lib/sigc
++-1.2/include -I/usr/include/libgnomemm-2.0
-I/usr/include/libgnomeuimm-2.0 -I/usr/include/libbonobouimm-2.0   -Wall
-g  -c window1.cc
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           -I/usr/include/gtkmm-2.0
-I/usr/lib/gtkmm-2.0/include -I/usr/include/sigc++-1.2 -I/usr/lib/sigc
++-1.2/include -I/usr/include/libgnomemm-2.0
-I/usr/include/libgnomeuimm-2.0 -I/usr/include/libbonobouimm-2.0   -Wall
-g  -c tryagainplus.cc
/bin/sh ../libtool --mode=link g++ -Wall         -g   -o tryagainplus
window1_glade.o window1.o tryagainplus.o -Wl,--export-dynamic -pthread
-L/usr/X11R6/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2 -lpthread
-lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0
-lgnomevfs-2 -lbonobo-2 -lgconf-2 -lbonobo-activation -lORBit-2
-lgthread-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0   
mkdir .libs
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

<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



Reply to: