In Linux, except for gcc and text editor installed by default, there is no available IDE. Of course, this is much better than windows. At least there is gcc, learning programming in linux, generally, the above two tools are recommended by experts. It is good to use make, gdb or something. However, for beginners, especially those who are familiar with VC and VB in windows, just using command lines is a bit of enthusiasm, especially gdb, almost all the breakpoints, programs, and so on should be recorded in the mind. If an error occurs, it cannot be changed. It takes a long time to locate the issue.
Famous development tools include Kdeveloper, Anjuta, Eclipse + CDT. kdeveloper is a KDE platform. You need to install a lot of KDE on the Gnome platform. If you don't like it, give up. Although it is said that the functions of Kdeveloper are powerful. Eclipse + CDT seems to be good for use, but there are two main points of discomfort, one is that the Code cannot be automatically completed, and the other is that the compilation speed is slow.
Experience KDevelop and Anjuta. Here we recommend an IDE similar to VC that supports C/C ++/java/python ......, Yes. It is relatively easy to install in ubuntu. First add a source to the system> System Management> Software Source:
Deb http://anjuta.org ./
Search for anjuta with the new version, and click all related items.
Or:
Sudo apt-get update
Sudo apt-get install anjuta automake autogen autoconf
Configure the C/C ++ GTK development environment for Ubuntu (version 7.10)
1. Configure GCC
GCC already exists in the just-installed system. 555 is really bad. This GCC cannot even compile a simple "Hello world. Because some required header files are missing, you need to install the build-essential Package. Installed with this package will automatically install g ++, libc6-dev, linux-libc-dev, libstdc ++ 6-4.1-dev and other necessary software and header file libraries.
Install this package in two ways.
(1) Search for the build-essential tag and apply
(2) enter the following command in the terminal: sudo apt-get install build-essential
After the installation is complete, you can write a helloworld file for testing.
Code:
# Include
Int main ()
{
Printf ("Hello World! "R" n ");
Return 1;
}
Compile:
$ Sudo gcc hello. c-o testhello
$./Testhello
Display
Hello World!
2. Install the GTK Environment
To install the GTK environment, you only need to install a gnome-core-devel, which contains many other packages. Install other things, such as libglib2.0-doc, libgtk2.0-doc, devhelp, glade-gnome, glade-common, glade-doc image Interface Design .......
1) Search for libglib2.0-doc, libgtk2.0-doc, devhelp, glade-gnome, glade-common, and glade-doc in the new version and Mark and apply.
(2) enter the following command in the terminal:
Sudo apt-get install gnome-core-devel
Sudo apt-get install libglib2.0-doc libgtk2.0-doc
Sudo apt-get install devhelp
Sudo apt-get install glade-gnome glade-common glade-doc
Sudo apt-get install libgtk2.0-dev
In this way, the installation of GTK is complete.