ERLEDIGT
NEIN
NEIN
ANTWORTEN
2
2
ZUGRIFFE
312
312
EMPFEHLEN
-
18.09.04 14:59 #1
- Registriert seit
- Feb 2004
- Ort
- Schweiz
- Beiträge
- 134
Hallo, zusammen,
ich habe heute das Troltech Qt designer Tutorial durchgearbeitet. Jedoch konte ich, obwohl alles genau nach Aleitung erstellt wurde mein Programm am Schluss nicht kompilieren.
Erst als ich eine Ausschnitt aus dem Code gelöscht habe ging es dann.
Code :1 2 3 4 5 6 7 8
#include <qvalidator.h> void ConversionForm::init() { numberLineEdit->setValidator( new QDoubleValidator( numberLineEdit ) ); numberLineEdit->setText( "10" ); convert(); numberLineEdit->selectAll(); }
Die Fehler waren nach Kompiller.
Code :1 2 3 4 5 6 7 8
[markus@localhost metric]$ make g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpr o -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -I.ui/ -I. -I.moc/ -o .obj/conversationform.o .ui/conversationform.cpp In file included from .ui/conversationform.cpp:24: conversationform.ui.h:10: error: syntax error before `::' token conversationform.ui.h:13: error: syntax error before `->' token conversationform.ui.h:14: error: ISO C++ forbids declaration of `convert' with no type conversationform.ui.h:15: error: syntax error before `->' token make: *** [.obj/conversationform.o] Fehler 1
Zeile 10 ist die mit init und dan eifach weiterzählen. Weiss jemadn woran das das liegt. Ohne diesen Auschnitt funktioniert es jetzt. Muss ich diese qvalidator.h auch irgend wo beilegen?
g chief
-
Also nach der Compilermeldung würd ich vermuten das du
conversionform.h nicht includiert hast?
Gruß
RedWing"I'm not deaf, I'm ignoring you"
----
-
hast du UIC und MOC drüber laufen lassen vor dem compilieren ?
Ansonsten siehe vorredner
Ähnliche Themen
-
Parse error: syntax error, unexpected T_CASE in /usr/export/www//_____/admin
Von wod2008 im Forum PHPAntworten: 19Letzter Beitrag: 11.02.10, 11:18 -
HILFEEE Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /homepag
Von schlaumeier23 im Forum PHPAntworten: 1Letzter Beitrag: 30.04.09, 14:46 -
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
Von Fielu im Forum PHPAntworten: 14Letzter Beitrag: 18.03.09, 21:58 -
Hilfe:Parse error: syntax error, unexpected T_STRING
Von D-LuX im Forum PHPAntworten: 2Letzter Beitrag: 11.01.08, 13:39 -
Dringend Hilfe!!Parse error: syntax error, unexpected $end in
Von Totschke im Forum PHPAntworten: 28Letzter Beitrag: 12.09.07, 17:24





Zitieren
Login





