-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用clang补全时出错 #34
Comments
Version of plugins |
auto-complete-clang的版本时20120612,我下了个20120730版本的,把auto-complete-clang.el替换了,但是不行,我是个emacs新手,求指点呀 |
@baby-bear 看看 |
我感觉是clang-cc1的问题,首先好像没空格,而且编译c++一般好像用clang++,之后我把auto-complete-clang.el中一行 (append '("-cc1" " -fsyntax-only") 改成了 (append '("++ -cc1" " -fsyntax-only") 之后byte-compile-d,可还是不行.出现的错误都一样,而且minibuffer在开始只有一个build目录找不到的小错 |
@baby-bear clang的介绍页面是这样说的
@brianjcj 原来的elisp上出错信息写得很不好,你如果信得过的话试试我这个吧https://github.com/HongxuChen/dotfiles/blob/master/_emacs.d/site-lisp/auto-complete-clang/auto-complete-clang.el ,出错的话就看echo area或者/tmp/ac-clang-stderr文件 不过我觉得auto-complete-clang响应时间上不行,所以基本上放弃了 |
use company-clang instead. I don't use auto-complete any more. |
I will see to the auto-complete issue this weekend. besides, you know to make auto-complete-clang work in real project, you need manual set up, right? I created another project cpputils-cmake to do that set up. if you don't use cmake and cpputils-cmake, you need set up In one of my project, the value of |
@redguardtoo |
cool, definitely I will try irony-mode |
恩,在编辑 .C 文件的时候,当想输入
如果已经定义了这个结构体,就不会出现这样的错误。 |
|
应该是在 init.el 中使用了 company-mode 而不是 auto-complete 的原因。 |
what's your auto-complete plugin? On Thu, Aug 1, 2013 at 4:26 PM, Imtxc notifications@github.com wrote:
help me, help you. |
用clang补全时
clang failed with error 1:
/usr/bin/clang-cc1 -fsyntax-only -code-completion-macros -x c++ -code-completion-at -:7:10 -
但clang我自己用的时候没有error 1 的问题,求助大神呀喵
The text was updated successfully, but these errors were encountered: