From: Larkin Cunningham (lcunningham at domain ddsi.decare.com)
Date: Thu 07 Oct 1999 - 12:12:03 IST
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 domain 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:
#include <kapp.h>
#include <ktmainwindow.h>
int main( int argc, char **argv )
{
KApplication a( argc, argv );
KTMainWindow *w = new KTMainWindow();
w->setGeometry(100,100,200,100);
a.setMainWidget( w );
w->show();
return a.exec();
}
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?
Larkin.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:41 GMT