[分享]emacs进行c++编程
-
- 帖子: 3
- 注册时间: 2007-12-27 12:49
I'm curious about why you prefer use so complicated method to develop c/c++ project. Using powerful IDE such as Eclipse or NetBeans, one could spend zero cost on begining java, c/c++ development. These IDEs are platform independent, and you don't need spend more than 10 minutes on learning them!
You seem like trying to make a text editor + its plugins acting as a IDE. I think you should let the professional tool do a professional thing. You should not fear to learn new things.
You seem like trying to make a text editor + its plugins acting as a IDE. I think you should let the professional tool do a professional thing. You should not fear to learn new things.
-
- 帖子: 56
- 注册时间: 2006-05-15 3:22
Re: [分享]emacs进行c++编程
顶上去,
最近转到linux平台的emacs上,有兴趣的一起啊。
有时间我会把一些亲身的体验发上来。
最近转到linux平台的emacs上,有兴趣的一起啊。
有时间我会把一些亲身的体验发上来。
-
- 帖子: 167
- 注册时间: 2008-06-19 15:27
Re: [分享]emacs进行c++编程
支持, 学习ing............
-
- 帖子: 338
- 注册时间: 2008-05-24 1:24
Re: [分享]emacs进行c++编程
cedet 一定要用 cvs 版的
- Jarson
- 帖子: 2371
- 注册时间: 2008-07-21 9:44
- 来自: 深圳
- 联系:
Re: [分享]emacs进行c++编程
顶,有空在学习下,谢谢楼主分享。
-
- 帖子: 73
- 注册时间: 2007-05-07 9:42
Re:
mkclawhammer 写了:I'm curious about why you prefer use so complicated method to develop c/c++ project. Using powerful IDE such as Eclipse or NetBeans, one could spend zero cost on begining java, c/c++ development. These IDEs are platform independent, and you don't need spend more than 10 minutes on learning them!
You seem like trying to make a text editor + its plugins acting as a IDE. I think you should let the professional tool do a professional thing. You should not fear to learn new things.
professional tool do a professional thing! Eamcs 是编辑器, gcc 是编译器, debug 来查错, make 来做工程控制, 等等.
如果把它们粘起来, 可以很好的处理程序. 这是 professional tool do a professional thing. 但是, 把 emacs 打扮成一个 ide, 那么它一定没有专门的 ide 方便和有效. 像 lz 这样, 写 c 是一堆插件, 如果写 java, python ...呢? 又是一堆插件, 这样 emacs 永远是一个二流的 ide. 难道我们的目标是把 vim/emacs 变成二流的 ide 吗!
Unix philosophy ------------McIlroy: A Quarter Century of Unix
This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.
让别人体会到 unix 下工具的统一与合作才是重要的. 可惜我现在做不到, 只是像
viewtopic.php?t=45814&highlight=
中说的一样
1. 输入源代码
$ emacs hello.c >>>> 进入emacs 编辑器环境
#include <stdio.h>
int main()
{
printf(“Hello World. ”); >>>> Emacs环境下,按下 Tab 键,有自动缩进功能
exit(0);
}
完成输入后,按住CTRL 键,按下 x, 再按下 c , 最后松开 CTRL。 >>>> 程序保留并退出emacs 环境。
2. 编译,链接,运行
引用
$ gcc -o hello hello.c
$ ./hello >>>> ./ 指明了所执行程序的路径
Hello World.
$
一个linux平台上的c程序开发已经完成咯
3. 调试
如果要使用 gdb 调试程序,那么在上一步编译的时候,记得加上 -g 选项
引用
$ gcc -g -o hello hello.c
$ gdb hello >>>> 进入 gdb 调试环境
-
- 帖子: 9
- 注册时间: 2009-03-12 18:35
Re: [分享]emacs进行c++编程
强贴啊。顶一个。。但是如果有讲配置语法 的就更好了。。我现在才刚学。。感觉配C/C++环境好难啊。。网上的方法太多了。。
-
- 帖子: 118
- 注册时间: 2009-02-05 16:49
-
- 帖子: 39
- 注册时间: 2005-05-06 0:46
Re: [分享]emacs进行c++编程
请教楼主是否有方法可以快速打开当前目录下包括其子目录(递归)里的某个文件?而不需要输入全路径,
不然每次都得记着哪些文件在哪个目录,很不方便。
谢谢!
不然每次都得记着哪些文件在哪个目录,很不方便。
谢谢!
-
- 帖子: 12
- 注册时间: 2006-07-13 11:55
Re: [分享]emacs进行c++编程
我要收藏!
- openware
- 帖子: 173
- 注册时间: 2009-02-22 14:15
- 联系:
- openware
- 帖子: 173
- 注册时间: 2009-02-22 14:15
- 联系:
Re: [分享]emacs进行c++编程
这位兄台,能能在google code上建立一个站点,将你的Emacs配置和扩展都传上去,让我们分享分享?xiao2004 写了:网上收集了一些资料,共享之...............
公司代理允许访问的网站极少,我极力争取到了ubuntu.org.cn
所以我会把一些在家里搜集的东西,放入其中,包括下载,希望不会对网站空间造成太多的影响
Desire Freedom, Love Beauty, Keep Hacking。
- mkailxr
- 帖子: 62
- 注册时间: 2009-10-20 13:13
Re: [分享]emacs进行c++编程
mark! 

- fangel16
- 帖子: 75
- 注册时间: 2010-07-21 14:51
- 联系: