[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Newbie KDE/QT Programming question...
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2001-07-20 10:17:21
[Download RAW message or body]

On Friday 20 July 2001 12:06, John Toon wrote:

> Right, if I do that, when I try to execute the newly made executable,
> it reports:
>
> [john1@localhost sillyprog]$ ./myprog
>
>
> FAILURE (KCmdLineArgs):
> Application has not called KCmdLineArgs::init(...).

That part is pretty clear, you're missing a call to KCmdLineArgs::init(). 
Where are you taking the example from ?

> And if I instead try compiling it with "g++ -o myprog main.o mywindow.o
> -L$QTDIR/lib -lqt" (as per the book) it just reports:
>
> [john1@localhost sillyprog]$ g++ -o myprog main.o mywindow.o
> -L$QTDIR/lib -lqt

Here your program doesn't link, because you're using KDE libs classes but do 
not link with the kde libraries.

-- 
Guillaume
http://www.telegraph-road.org
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic