Re: Hello World

Martin Hofius <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo Sascha,

Am Sonntag, 7. Juni 2009 schrieb Sascha 'saigkill' Manns:
> Servus Liste,
>
> g++ $CXXFLAGS $(pkg-config --cflags --libs QtGui) khelloworld.cpp -o
> khelloworld
> khelloworld.cpp:7:18: error: kapp.h: Datei oder Verzeichnis nicht
> gefunden
> khelloworld.cpp:14:24: error: qpopupmenu.h: Datei oder Verzeichnis nicht
> gefunden
>
> Gibts kapp und qpopupmenu auch für die neueren QT/KDE Versionen?

die QT-includes sind nach Libs aufgeteilt und großgeschrieben ohne das 
abschließende .h angelegt, also z.B. 

#include <QtGui/QApplication>

Falls der Fehler dann auch noch auftritt, muß dem Compiler der include-Pfad 
noch mitgegeben werden...  Manchmal hilft es, in KDevelop einfach mal ein 
Simpel-KDE -bzw. QT-Programm anzulegen und sich dann mal die Compiler-Aufrufe 
bzw. die makefiles anzusehen. Für QT-Programme würde ich da auch den 
QtCreator empfehlen, der arbeitet mehr "QT-like" und nicht mit so viel 
automake-Gedönse.

Gruß
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.