You have probably used an IDE such as Code::Blocks, Eclipse, Netbeans, or Microsoft Visual Studio .NET (free version). There is an IDE named Anjuta DevStudio designed for Gnome. It is built from the GTK+ tool set. GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API. GTK+ it is written in C, but has bindings to many other popular programming languages such as C++, Python and C# among others. GTK+ is licensed under the GNU LGPL 2.1 allowing development of both free and proprietary software with GTK+ without any license fees or royalties.
Anjuta DevStudio is a versatile software development studio featuring a number of advanced programming facilities including project management, application wizard, interactive debugger, source editor, version control, GUI designer, profiler and many more tools. It focuses on providing simple and usable user interfaces, yet powerful for efficient development. This chapter will show you how to use Anjuta to create a simple, console-based, program in C++.
Choose Anjunta from the Gnome “Development/Integrated Environment” menu.
This is the account for the user tutorial upon which we have based all our tutorial material.
This is what you will see when you first run Anjuta. Select Project so we can create our first C++ project.
In this dialog, choose the C++ tab and select “Generic C++”.
Change “Author”, “Email address”, and “Version” as you wish and then choose a project name. The default supplied by Anjuta is “foobar-cpp” (fouled-up beyond all recognition”). We choose to name our project “first-anjuta-project” and move on.
Next you are presented with a choice of “Project options”. It is wise to just leave everything here alone and move forward.
Before creating the project, Anjuta summarizes the project parameters. Now click Apply.
What you see in the left panel is the uninitialized project. Expand “src” to view the C++ source files that were built by default.
The file “main.cc” is the standard C++ “Hello world!” source code along with comments about the GNU General Public License. Leave the comments at your option.
We do not want the “Hello World!” program, so change the source code as indicated.
The project cannot be built until it is configured. In the Build menu, select Configure Project…
Anjuta will configure the project by building some files, including configure and Makefile. Recall that we discussed these in Chapter Seven.
Now click the Execute icon and the program will run in a panel. Note that Anjuta has an integrated debugger. For larger programs, a tool like this is indispensible.
Many features of Anjuta can be configured by selecting the Preferences menu item from the Edit menu.