C language programming in linux (1)-Linux general technology-Linux programming and kernel information. For details, see the following.
(1) Directory Introduction
1) Introduction to Linux programming-Basic Knowledge
2) getting started with Linux programming-process Introduction
3) getting started with Linux programming-File Operations
4) Introduction to Linux programming-time concept
5) Introduction to Linux programming-Signal Processing
6) getting started with Linux programming-Message Management
7) getting started with Linux programming-thread operations
8) Linux programming-Network Programming
9) Introduction to C development tools in Linux
(2) specific content
1) Introduction to Linux programming-Basic Knowledge
Basic knowledge of C language programming in Linux
Preface:
This article introduces the basic knowledge required for C language programming in LINUX. In this article, we will
You will learn the following:
Source program Compilation
Write Makefile
Library Link
Program debugging
Header files and system help
----------------------------------------------------------------------------
----
1. source program Compilation
In Linux, If You Want To compile a C language source program, we need to use the GNU gcc compiler. Below we
Use an example to describe how to use the gcc compiler.
Suppose we have the following simple source code (hello. c ):