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



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/




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