Learn how to configure C, C ++, GTK, QT, and other development environments
Source: Internet
Author: User
Learn how to configure C, C ++, GTK, QT, and other development environments-Linux general technology-Linux programming and kernel information. For more information, see the following. 1. Configure GCC
Just installed GCC can not compile anything, because there are no necessary header files, so to install build-essential, installed this package will install g ++, libc6-dev, linux-libc-dev, libstdc ++ 6-4.1-dev and many other necessary software and header files.
Sudo apt-get install build-essential
After the installation is complete, write a c language program testc. c to test it.
# Include
Int main ()
{
Printf ("Hello Ubuntu! \ N ");
Return 0;
}
$ Gcc testc. c-o testc
$./Testc
Display
Hello Ubuntu!
C language compiler installed successfully;
2. Install the GTK Environment
To install the GTK environment, you only need to install a gnome-core-devel, which integrates many other packages. In addition, some other things need to be transferred, such as libglib2.0-doc, libgtk2.0-doc help document, and devhelp help document, glade-gnome, glade-common, and glade-doc graphic interface design.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.