RE: [gtkmm] please help me compile helloworld.cc
- From: Dale Hirt <dale sbcltd com>
- To: gtkmm-list gnome org
- Subject: RE: [gtkmm] please help me compile helloworld.cc
- Date: Thu, 12 Sep 2002 10:11:50 -0700
Do you have pkgconfig installed? It is there to make your life extremely
easier.
g++ -DPACKAGE=\"hello\" -DVERSION=\"1.0\" `pkgconfig --cflags gtkmm-2.0` -c
helloworld.cc
g++ -o hello helloworld.o -rdynamic `pkgconfig --libs gtkmm-2.0` -L/usr/lib
-L/usr/X11R6/lib -ldl -lXi -lXext -lX11 -lm -lpthread
-----Original Message-----
From: Charlie Cosse [mailto:ccosse psl nmsu edu]
Sent: Thursday, September 12, 2002 10:06 AM
To: gtkmm-list gnome org
Subject: [gtkmm] please help me compile helloworld.cc
Hello, i would really like to use gtkmm but 2 days of fighting the setup
and i'm
running out of time. So, if anyone can help, here is my current state
of affairs:
----------------------------------------------------------------------------
----------------------------------------------------------
[ccosse fermi src]$ make
g++ -DPACKAGE=\"hello\" -DVERSION=\"1.0\" -I. -I. -I/usr/include
-I/usr/lib/gtkmm/include/ -I/usr/include/gtk-1.2
-I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include
-I/usr/include/sigc++-1.0 -c helloworld.cc
g++ -o hello helloworld.o -rdynamic -L/usr/lib -L/usr/X11R6/lib
-L/usr/lib -lgtkmm -lgdkmm -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext
-lX11 -lm -L/usr/lib -lsigc -lpthread
helloworld.o: In function `destroy_handler(void)':
helloworld.o(.text+0xa): undefined reference to `Gtk::Main::quit'
helloworld.o: In function `HelloWorld::HelloWorld(int)':
helloworld.o(.text+0x54): undefined reference to
`SigC::ObjectScoped::ObjectScoped(void)'
helloworld.o(.text+0x80): undefined reference to
`Gtk::Window::Window(int, GtkWindowType)'
<and a bunch more...>
----------------------------------------------------------------------------
----------------------------------------------------------
More info:
I fought installing from src on Mandrake 8.2 for 2 days, but couldn't
get all pkgs to work together, then
upgraded just the gtkmm pkg from Mandrake9.0 RC2, which installed the
libsigc++ and libgtkmm
for me. (little did i know could do that way). So, that's where i'm at
-- the install went fine from the
9.0 cdrom and when i point to -L/usr/lib (which is where libsigc and
libgtkmm are) i get the above errors. Anyone
know what i need to do? Thanks v. much,
Charlie
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]