Buy Dev C++
- What IDE can I use?
- What compilers are there?
- What <insert> is the best?
Let's start with:
Compilers:
A compiler is a command line application (in most cases) that takes your source code files and generates an executable. The methods used to do this and the resulting size/optimized executable will vary based on compiler.
A compiler does not help you write code, it's not a development environment where you can type code. It's sole purpose is to take code already written and build an executable.
No one compiler is better than any other. They all have their pros and cons. If you wish to compare compilers, please do so from the technical specifications on their own websites. In most cases, this is not going to serve you any great purpose. If optimization is your concern, your best bet is to follow standard coding techniques when developing highly optimized code.
Some common compilers are:
- MS Visual C++ Compiler (Windows) - http://www.microsoft.com/express/vc/
- GCC (Linux) - http://gcc.gnu.org/
- MingW (Windows) - http://www.mingw.org/
- Intel C++ Compiler (Linux, Windows, OS X) - http://www.intel.com/cd/software/products/asmo-na/eng/compilers/284132.htm
- Borland C++ Compiler (Windows) - http://www.borland.com
Integrated Development Environments (IDE)
An IDE is a full suite for software development. Typically they come bundled with a text editor, a compiler and a debugger. The text editors are the main component as they offer functionality like Syntax highlighting, project management, source-control integration etc.
An IDE is not a compiler, but most IDEs will come with one of the compilers listed in the previous section.
e.g Dev-C++ comes with MingW, Code::Blocks comes with GCC.
The complexity of IDEs will vary greatly, while some are better suited for new developers and some for advanced/professional developers.
Note: Dev-C++ is no longer recommended on their official forum. wxDev-C++ should be used instead.
Some common IDEs:
Easy to Use
wxDev-C++ (Windows) - http://wxdsgn.sourceforge.net/
Anjuta (Linux) - http://anjuta.sourceforge.net/
Medium
Code::Blocks (Windows/Linux) - http://www.codeblocks.org/
MS Visual C++ Express (Windows) - http://www.microsoft.com/express/vc/
NetBeans (All) - http://www.netbeans.org/
KDevelop (Linux) - http://www.kdevelop.org/
Borland C++ (Windows) - http://www.borland.com
Difficult
Eclipse CDT (All) - http://www.eclipse.org/
Note: You are also free to write code in any of your favorite text editors then compile it manually.
Debuggers
Debuggers are used to analyze your application while it's running. You are able to pause your application at selected points (breakpoints) and view information such as variable values etc.
Currently, there only seems to be 2 major debuggers in use.
Microsoft Visual Studio Debugger (Windows)
This is a high quality debugger. It's easy to use and integrates seemlessly into the visual studio IDE. It does have some slight problems when dealing with multiple threads, but generally works very well.
GDB (All)
This is an open source debugger often run alongside GCC/MingW. It's also a good quality debugger, but unfortunately it's multi-threaded debugger is considerably behind the visual studio equal.
Fortunately, GDB is platform independent and will integrate with numerous IDEs. Unfortunately, this integration is sometimes very difficult to work with and not intuitive.
Please post corrects/comments or questions below.
Buy Dav Christmas Cards
Buy Dev C Online
Dev-C is Free Software distributed under the GNU General Public License. This means you are free to distribute and modify Dev-C, unlike most Windows software!Be sure the read the license. Please support Dev-C by making a donation! The money will be shared between the active developers and the support manager in order to help us continue improving Dev-C from day to day. C API (libmysqlclient) is a client library for C development. For C-language and SQL: for MySQL 8.0, 5.7, 5.6, 5.5; we recommend MySQL 8.0 C API. Dev-C is a free full-featured integrated development environment (IDE) distributed under the GNU General Public License for programming in C and C. It is written in Delphi. It is bundled with, and uses, the MinGW or TDM-GCC 64bit port of the GCC as its compiler. Dev-C can also be used in combination with Cygwin or any other GCC-based.
I was wondering if y'all know of any free downloads for basic virtual instruments such as piano, drum set, guitar, etc? My professor recommended Melda Free Effects Bundle and Tyrell N6 but they aren't quite what I'm looking for. Download vst piano reaper.
Dev C++ Tutorial
Originally released by Bloodshed Software, but abandoned in 2006, it has recently been forked by Orwell, including a choice of more recent compilers. It can be downloaded from:
http://orwelldevcpp.blogspot.com
Installation
Run the downloaded executable file, and follow its instructions. The default options are fine.Support for C++11
By default, support for the most recent version of C++ is not enabled. It shall be explicitly enabled by going to:Tools -> Compiler Options
Here, select the 'Settings' tab, and within it, the 'Code Generation' tab. There, in 'Language standard (-std)' select 'ISO C++ 11':
Ok that. You are now ready to compile C++11!
Compiling console applications
To compile and run simple console applications such as those used as examples in these tutorials it is enough with opening the file with Dev-C++ and hitF11
.As an example, try:
File -> New -> Source File
(or Ctrl+N
)There, write the following:
Then:
File -> Save As..
(or Ctrl+Alt+S
)And save it with some file name with a
.cpp
extension, such as example.cpp
.Now, hitting
F11
should compile and run the program.If you get an error on the type of
x
, the compiler does not understand the new meaning given to auto
since C++11. Please, make sure you downloaded the latest version as linked above, and that you enabled the compiler options to compile C++11 as described above.