LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] KDE developing

[ILUG] KDE developing

Larkin Cunningham lcunningham at ddsi.decare.com
Thu Oct 7 12:12:03 IST 1999


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:

#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.






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell