2012-08-03 56 views
0

我花了很多時間爲Qt4配置和測試emacs語義和自動完成。 我發現這些甚至不能解析或找到Qt4包含文件,因爲間接包含。 例如,QString> include qstring.h(包括../../src/tools/qstring.h,mingw) 我總是得到「錯誤的類型參數:stringp,nil」(試一試Linux或Mingw) 不知道Lisp。你能幫助我嗎? 非常感謝!Qt4包含阻止emacs語義或自動完成工作的文件?

調試跟蹤如下:

Debugger entered--Lisp error: (wrong-type-argument stringp nil) 
    call-process(nil nil #<buffer *clang-output*> nil "-cc1" "-fsyntax-only" "-I~/project/qt481-mingw/include" "-I~/project/qt481-mingw/include/Qt" "-I~/project/qt481-mingw/include/QtCore" "-I~/project/qt481-mingw/include/QtGui" "-code-completion-at" "c:/Users/ygao/project/tests/test-qt-semantic.cpp:13:8" "c:/Users/ygao/project/tests/test-qt-semantic.cpp") 

    apply(call-process nil nil #<buffer *clang-output*> nil ("-cc1" "-fsyntax-only" "-I~/project/qt481-mingw/include" "-I~/project/qt481-mingw/include/Qt" "-I~/project/qt481-mingw/include/QtCore" "-I~/project/qt481-mingw/include/QtGui" "-code-completion-at" "c:/Users/ygao/project/tests/test-qt-semantic.cpp:13:8" "c:/Users/ygao/project/tests/test-qt-semantic.cpp")) 

    (if ac-clang-auto-save (apply (quote call-process) ac-clang-executable nil buf nil args) (apply (quote call-process-region) (point-min) (point-max) ac-clang-executable nil buf nil args)) 

回答

1

從堆棧跟蹤,似乎ac-clang-executable爲零。嘗試M-x customize-option RET ac-clang-executable並將其設置爲您的clang二進制文件的路徑。

+0

非常感謝!有用!雅虎... – 2012-08-07 19:09:02