------------------------------------- Chapter 1 C under Linux Program Development Environment Development Editor: Vim Compiler: select the gnu c/C ++ compiler GCC Debugger: GDB function library: Glibc system header file: glibc_headide kylix: dephikdeveloprhide under Linux: similar to Turbo C ++, the compiler is rarely used: gccgcc (GNU ccompiler) is a powerful and superior multi-platform compiler launched by GNU, the GCC compiler can compile and link source programs in C and C ++ into executable files. Below are the suffixes and explanations of some source files that GCC supports compiling. C is a suffix file, c Source code File. H is a suffix file. It is a program-contained header file //. I is a suffix file and is a pre-processed C source. Code File. A file with the suffix o is the compiled target file //. S is a file suffixed with GCC-O hello. c. Use GCC to compile our source program-O option. The intellectual file name output by the compiler is hellohello. C is our source program file-C option, indicating that we only require the compiler to output the target code, the-G option does not need to be output to indicate that the compiler is required to provide information for future debugging of the program during compilation. /Hello, you can see the program output result **************************** RPM package usage. to view the glibc version: ls/lib/libc-* view GCC version: GCC -- C program development process in versionlinux 1 use VI and other editing tools to compile the source program 2 save *. c3 uses GCC to compile binary executable files. 4. /. if there is a problem with out execution 5, you can use GDB for debugging // write a C program Hello. CINT main (INT argc, char ** argv) {printf ("Hello Linux \ n"); Return 0;} ls: displays files and folders in the current directory mkdir: create a folder CD folder name: Enter the folder
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