开源项目和IDE [英] Open Source Projects and IDEs

查看:117
本文介绍了开源项目和IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名新手程序员,在C和C ++开发方面有一些经验,但我的知识和经验非常局限于Windows和Visual Studio环境。最近我正在研究一些开源项目,如 Gimp,Inkspace,Code :: Blocks 等。但由于不熟悉,我发现自己很沮丧。我甚至无法建立任何项目。



所以我的问题是:

1)什么是makefile吗?

2)开源软件的贡献者如何编写代码?我的意思是他们必须使用IDE。如何在像Visual Studio或Code :: Blocks这样的IDE中打开一个开源项目?



注意:

我成功创建的唯一开源项目是NotePad ++。那是因为源目录中有Visual Studio项目文件所以我只需要双击并点击按钮构建。



谢谢!



-EDIT -

通过互联网搜索我发现有些人只使用像 vim这样的文字编辑器编写代码。我还想知道专业的C / C ++开发人员使用什么,IDE或文本编辑器?在编码/维护大型代码库时,您使用了什么?为Linux Kernel,Photoshop,Inkspace等软件做出贡献的人,他们使用了什么?

I am a newbie programmer who has some experience in C and C++ development but my knowledge and experience is very limited to the Windows and the Visual Studio environment. Recently I was looking into some open-source projects like Gimp, Inkspace, Code::Blocks...etc. but found myself in frustration because of the unfamiliarity. I couldn't even build any of the projects.

So my question are:
1) What are makefiles ?
2) How do contributors to open-source software write their code ? I mean they must use an IDE. How can I open up an open-source project in an IDE like Visual Studio or Code::Blocks ?

Note:
The only open-source project I have ever successfully created is NotePad++. That's because there were Visual Studio project files in the source directory so I just had to double click and hit the button build.

Thanks!

-EDIT-
Searching over the internet I've found that some people only use text-editors like vim to write code. I would also like to know what professional C/C++ developers use, IDE or text-editor ? What do you use when you're coding/maintaining large code bases ? People who contribute to software like Linux Kernel, Photoshop, Inkspace...etc, what do they use ?

推荐答案

引用:

1)什么是makefile?

1) What are makefiles ?





如果安装了Visual Studio,请运行Visual Studio命令行 。在命令窗口中,键入nmake。这是微软的make命令版本。在同一个命令窗口中,键入cl。这是微软的C ++编译器。它与Visual Studio每次构建项目时运行的程序相同。



此链接描述了makefile的格式。



https://msdn.microsoft.com/en-us/library/yz1tske6。 aspx [ ^ ]





If you have Visual Studio installed, run "Visual Studio Command Line". In the command window, type "nmake". That's Microsoft's version of the make command. In that same command window, type "cl". That's Microsoft's C++ compiler. It's the same program that Visual Studio runs each time you build a project.

This link describes the format of a makefile.

https://msdn.microsoft.com/en-us/library/yz1tske6.aspx[^]

引用:

2)开源软件的贡献者如何编写代码?我的意思是他们必须使用IDE。如何在像Visual Studio或Code :: Blocks这样的IDE中打开一个开源项目?

2) How do contributors to open-source software write their code ? I mean they must use an IDE. How can I open up an open-source project in an IDE like Visual Studio or Code::Blocks ?





他们可能会使用一个简单的编辑器而不是一个IDE。有些人使用Emacs,vi甚至记事本。我见过程序员使用普通的旧vi和屏幕效果很好。



http://en.wikipedia.org/wiki/Vi [ ^ ]



http://en.wikipedia.org/wiki/GNU_Screen [ ^ ]



我更喜欢一个IDE我自己。看看Netbeans和Exclipse。 IDE的问题是他们需要你提供一个配置(很像项目和解决方案文件)来描述不同的部分以及如何构建它们。



如果我只是给你一个makefile和一些C源文件,你必须自己构建项目文件。



They might use a simple editor instead of an IDE. Some use Emacs, vi, or even Notepad. I've seen programmers use plain old vi with screen to great effect.

http://en.wikipedia.org/wiki/Vi[^]

http://en.wikipedia.org/wiki/GNU_Screen[^]

I prefer an IDE myself. Take a look at Netbeans and Exclipse. The trouble with IDEs is they need you to provide a configuration (much like project and solution files) to describe the different pieces and how to build them.

If all I gave you was a makefile and some C source files, you would have to build the project file yourself.


这篇关于开源项目和IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆