C++ Question Compilers?

walsjona

Member
Joined
Jan 10, 2010
Messages
35
Reaction score
0
Points
6
Hi I'm new to writing in c.

what is a compiler and where can I get one?
 
You might want to learn about compilers before you even think about writing in the language you want to... this might help you [ame="http://en.wikipedia.org/wiki/Compilers"]Compiler - Wikipedia, the free encyclopedia[/ame]
 
A compiler is the program which takes the code you write and translates it into machine-readable code. In essence, it turns C code into executable and .dll files.

Writing in C is not easy, nor in any code. One needs more than just a compiler, but to learn the language, one needs a compiler anyway. Microsoft offer a range of free compiler tools known as the "Visual Studio" series, the free variants being dubbed "Express Edition" for a particular language. So, to code in C++, which is the language of Orbiter addons and native windows applications, you would get a C++ compiler, for instance, Visual C++ 2010 Express Edition, available here.

Note that while the tools provided by Microsoft are free at the Express Edition level, they do require registration after 30 days. There are many other compilers out there, as well, and one can get lost in the myre of differing programs, which is why I suggest only one.

Also, the MSDN offers tutorials for writing in C and C++, available from within the IDE (Integrated Development Environment) after installation.

Good luck with it.
 
I'm glad you approve.
 
I use this:
http://www.codeblocks.org/

You get a MinGW's GCC compiler along with a nice, community-driven, multiplatform IDE, having templates of projects for various open source libraries, has tons of plugins such as profiler, memory leak checker. In contrary to the previous choice, they do listen and react.

Note that you won't be able to create addons for Orbiter with this, but it's not what you were asking about.
 
Again, as I mentioned, there are a lot of other compilers out there besides the one I mentioned. I suspect that throwing more in will merely complicate the issue and potentially provoke some sort of "compiler superiority" debate, which was why I only mentioned one program.
 
Back
Top