This is strictly for KDE C++ types out there:
I know there are KDE mailgroups out there, but I am interested in talking to
people in Ireland (or better still in Cork) interested in developing
applications in KDE using CORBA/KOM. If you are into KDE development (or even
other X-Windows development) and want to give me a shout, email me at
larkin at gofree.indigo.ie.
I am in the process of getting up to speed with KDE development. I tried to
compile and link a little KDE window program that I took from
http://www.dormnet.his.se/~a96danma/khello1.htm (this was a link from
http://developer.kde.org). The code is:
int main( int argc, char **argv )
KApplication a( argc, argv );
KTMainWindow *w = new KTMainWindow();
a.setMainWidget( w );
Straight forward enough really. I have Qt installed and the .h and .o files are
in place, the same goes for the kde developer object and header files.
The compile worked fine:
g++ -c -I$KDEDIR/include -I/usr/include/qt -fno-rtti khello.cc
and khello.o was created.
The link though doesn't work:
g++ -L$KDEDIR/lib -lkdecore -lkdeui -lqt -o khello khello.o
It complains about the crt1.o library file saying that there was an undefined
reference to main.
Has anybody got a solution as to what I am doing wrong?
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!