我剛剛在如何在幾分鐘前編譯這個腳本的幫助,但我已經設法得到錯誤。我只是C++的初學者,不知道下面的錯誤是什麼意思或如何解決它。錯誤:在C++腳本中缺少包含?
這是script in question。我已經閱讀了一些用戶的意見,建議他們更改#include
部件,但它似乎正是腳本的內容,see this comment。
[[email protected] wkthumb]# qmake-qt4 && make
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I. -I. -o main.o main.cpp
main.cpp:5:20: error: QWebView: No such file or directory
main.cpp:6:21: error: QWebFrame: No such file or directory
main.cpp:8: error: expected constructor, destructor, or type conversion before ‘*’ token
main.cpp:11: error: ‘QWebView’ has not been declared
main.cpp: In function ‘void loadFinished(bool)’:
main.cpp:18: error: ‘view’ was not declared in this scope
main.cpp:18: error: ‘QWebSettings’ has not been declared
main.cpp:19: error: ‘QWebSettings’ has not been declared
main.cpp:20: error: ‘QWebSettings’ has not been declared
main.cpp: In function ‘int main(int, char**)’:
main.cpp:42: error: ‘view’ was not declared in this scope
main.cpp:42: error: expected type-specifier before ‘QWebView’
main.cpp:42: error: expected `;' before ‘QWebView’
make: *** [main.o] Error 1
我有web工具包我的Fedora Core 10臺機器上: QT-4.5.3-9.fc10.i386 QT-devel的-4.5.3-9.fc10.i386
謝謝所有的幫助
您是否使用了相同的'wkthumb.pro'? – 2010-04-09 22:22:44
@gf - 是的,我是。我需要修改它嗎? – Abs 2010-04-10 18:46:27