Re: Re: Wie setze ich PATH-Variable für QT4 ?

Oliver Block <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Am Donnerstag, 12. April 2007 17:18 schrieb Lars Steen:
> ls@core:~/Programmierung/mathe/src> gmake
> g++ -m64 -o ../bin/mathe mathe.o    -L/usr/lib64 -lQtGui -L/usr/lib64
> -L/usr/X11R6/lib64 -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXfixes
> -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm
> -ldl -lpthread mathe.o: In function `main':
> mathe.cpp:(.text+0x43): undefined reference to `MainWindow::MainWindow()'

In welcher Bibliothek befindet sich die Klasse MainWindow? (Von welcher Klasse 
hast Du sie abgeleitet?) Wenn das KMainWindow ist, dann hat das mit qt (als 
Bibliothek) nichts zu tun. 

In deinem Verzeichnis befindet sich eine Datei mit der Endung pro. Die wird 
von qmake (nicht gmake) benutzt um das Makefile zu erstellen. qt verfolgt da 
einen etwas anderen Ansatz, wegen der Portierbarkeit. Schau mal nach, ob 
diese pro-Datei alle notwendigen c und h Einträge hat.

Um qmake etwas besser zu verstehen, sie bitte hier nach. Normalerweise 
solltest Du keine manuellen Einträge vornehmen müssen. - Normalerweise.:)

http://doc.trolltech.com/4.2/qmake-manual.html

Gruß,

Oliver


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
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.