Re: [gtkmm] Newbie in gtkmm and c++ under linux



How did you compile the program?

ericlussier75 hotmail com wrote:

Hello every one, I am a programmer but a newbie in programming gtkmm and
also a newbie in programming C++ under linux.

I am trying to compile the "Hello world" program of gtkmm documentation from:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch03s06.html

and I get this message on the shell:
[root myhost cpp]# make
g++ main.cc -o main `pkg-config gtkmm-2.0 --libs --cflags`
/tmp/ccE2Gp6W.o(.text+0x2f): In function `main':
: undefined reference to `HelloWorld::HelloWorld[in-charge]()'
/tmp/ccE2Gp6W.o(.text+0x4d): In function `main':
: undefined reference to `HelloWorld::~HelloWorld [in-charge]()'
/tmp/ccE2Gp6W.o(.text+0x73): In function `main':
: undefined reference to `HelloWorld::~HelloWorld [in-charge]()'
collect2: ld returned 1 exit status
make: *** [all] Error 1
[root myhost cpp]#

I have checked the code about 10 times and it is exactly the same as on the
example site's page.

Does anyone have an idea of what i am doing wrong?

Thanks.

_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


--
* The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X

* You cannot exercise your power to a point of humiliation.
                              - Jean Chretien

* It's amazing how the small seeds of distrust and misunderstanding
 can yield a crop of hate and death...



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