---
nicht zu C, sondern muss vorher durch moc(1) laufen. Meines Wissens macht d er gcc das nicht automatisch. moc scheint bei SuSE standardmäßig nicht im PATH zu sein. Liegt unter /usr/lib/qt3/bin/.
hab es gefunden und auch direkt ausprobiert.. Hat aber nicht geklappt.. ;,(
Die Datei dürfte doch schon im selben Verzeichnis
vorliegen, oder nicht?
Ne, leider nicht... Ich weiß echt nicht, wie ich dieses Beispiel zum Ausführen bringe. Gruß Frank
Hallo,
Ne, leider nicht... Ich weiß echt nicht, wie ich dieses Beispiel zum Ausführen bringe.
Hab mal gegoogled: Das ist wohl so gedacht: <snip> Method B: The class declaration is found in an implementation (.cpp) file If the class declaration above is found in the file myclass.cpp, the moc output should be put in a file called myclass.moc. This file should be #included in the implementation file, i.e. myclass.cpp should contain the line #include "myclass.moc" at the end. This will cause the moc-generated code to be compiled and linked together with the normal class definition in myclass.cpp, so it is not necessary to compile and link it separately, as in Method A. </snip> Also: moc -o httpd.moc httpd.cpp g++ ... Ich vermute mal, dass du genau das versucht hast, und es nicht geklappt hat. Mehr weiß ich aber auch nicht. Grüße, Jürgen
participants (2)
-
Frank Haedicke
-
Jürgen Wieferink