Constitution and installation of C development environment under Linux

Source: Internet
Author: User
Tags crypt linux

This article describes the Linux C development environment, the composition and installation, so that readers of the Linux C development environment can have a preliminary understanding.

Do you know Linux? Believe now more and more people will say "yes". So how much do you know? There is no denying that most Linux users are currently in the lower level of understanding of Linux, they may be a few commands, with several services, will use RPM to install the software, will operate the kde/gnome, and so on, but when they encounter some need to compile the installation of software, Faced with some simple error messages, they are at a loss. To really jump these primary levels, you won't be able to get to the bottom of things, such as the C development environment under Linux in this article and other operating system knowledge beyond this article.

Linux and C are naturally puzzled by the source, you may know that the Linux operating system kernel is mainly written in C, in addition to a lot of Linux software is written in C, especially some well-known service software, such as MySQL, Apache and so on. Beginners may be compiling software such as MySQL, encountered a variety of errors, in fact, as long as you understand the Linux C development environment, you can choose to solve some of the installation process errors.

Linux's C development environment differs from windows, and in Linux, a complete C development environment consists of the following three components:

1, function library: glibc

To frame a complete C development environment, GLIBC is essential, and it is the main function library of Linux under C. There are two ways to install GLIBC:

A. A function library installed as a test

To try out a new library of functions with different options when compiling a program

B. Installed as the main C function library

Library of functions used by all new compilers

GLIBC2 includes several additional packages: Linuxthreads, Locale, and crypt, usually with different versions of the file names, similar to the following file names:

Glibc-2.06.tar.gz

Glibc-linuxthreads-2.0.6.tar.gz

Glibc-localedate-2.0.6.tar.gz

Glibc-crypt-2.0.6.tar.gz

2. Compiler: GCC

GCC (GNU Ccompiler) is the powerful, superior performance of the multiplatform compiler, the GCC compiler can be C, C + + language source program, and the target program compiled, connected to the executable file, the following is the GCC supported the compilation of some source files suffix and its interpretation:

. c is the suffix of the file, C language source code files;

(a) A file with a suffix, which is a file of archives composed of the target file;

. c,.cc or. cxx is a suffix of the file, is a C + + source code file;

. h is the suffix of the file, is the program included in the header file;

. I for the suffix of the file, is already preprocessed C source code files;

. II is a suffix of the file, is already preprocessed C + + source code files;

. m is the suffix of the file, is the objective-c source code file;

. O is the suffix of the file, is the compiled object file;

. s is the suffix of the file, is the assembly language source code file;

. S is the suffix of the file, is precompiled assembly language source code files.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.