Emacs CEDET 和系统包含路径
我想添加 openMPI 库标头的路径。因此,在我发现所有 openMPI 标头都在 /usr/lib/openmpi/include/* 中后,我将这两行添加到我的 .emacs 中:
(semantic-add-system-include "/usr/lib/openmpi/include" 'c-mode)
(semantic-add-system-include "/usr/lib/openmpi/include" 'c++-mode)
我认为这没问题,但它不起作用!
这是semantic-c-describe-envirnoment 命令的结果:
该文件的系统包含路径是:
/usr/include
/usr/local/include/
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/
/usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed/
/usr/include/
无法弄清楚出了什么问题或我错过了什么
谢谢
I'd like to add path to the openMPI library headers. So, after i found all openMPI headers are in /usr/lib/openmpi/include/* i added these two lines to my .emacs:
(semantic-add-system-include "/usr/lib/openmpi/include" 'c-mode)
(semantic-add-system-include "/usr/lib/openmpi/include" 'c++-mode)
I think this is ok, but it's not working!
This is the result of semantic-c-describe-envirnoment command:
This file's system include path is:
/usr/include
/usr/local/include/
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/
/usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed/
/usr/include/
Can't figure out what's wrong or what i'm missing
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有解释为什么它不起作用。由于我遇到了同样的问题,经过实验,我发现了一个对我有用的修复方法:
I have no explanation as to why it doesn't work. Since I had the same problem, experimenting I found a fix that worked for me:
我尝试过这个例子,发现它“对我有用”。您最好的选择是加入 cedet-devel 邮件列表,在那里可以更轻松地帮助您完成在 Emacs 中调试问题的过程。
https://lists.sourceforge.net/lists/listinfo/cedet-devel
I've given this example a try, and find that it "works for me". Your best bet is to join the cedet-devel mailing list where it will be easier to help your through the process of debugging the issue in your Emacs.
https://lists.sourceforge.net/lists/listinfo/cedet-devel