You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

blu fire

Beginner

  • "blu fire" started this thread

Posts: 20

Location: London

Occupation: Student

  • Send private message

1

Tuesday, August 24th 2004, 11:33pm

Kapplication generates linker error, QApplication doesn't

Hmm, anyone know why this is happening?
If I use kapplication.h and call KApplication app(argc, argv) I get a linker error (error below). If I replace those two k's with q then I don't get the error....
I'm trying to port a Windows program to KDE/Linux, so i'm hoping to use the kde specific stuff

Source code

1
2
3
4
5
6
7
8
kgmail.o(.text+0x308): In function `main':
: undefined reference to `KApplication::KApplication[in-charge](bool, bool)'
kgmail.o(.text+0x329): In function `main':
: undefined reference to `KApplication::~KApplication [in-charge]()'
kgmail.o(.text+0x33c): In function `main':
: undefined reference to `KApplication::~KApplication [in-charge]()'
collect2: ld returned 1 exit status
make: *** [kgmail] Error 1

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Wednesday, August 25th 2004, 2:34am

Maybe you are missing -lkdecore in your library list

Cheers,
_
Qt/KDE Developer
Debian User

blu fire

Beginner

  • "blu fire" started this thread

Posts: 20

Location: London

Occupation: Student

  • Send private message

3

Thursday, August 26th 2004, 9:40am

doh :rolleyes: