Learning C/C ++ programming in Linux

Source: Internet
Author: User
Tags gtk

Learning C/C ++ programming in Linux

 

1. First, the Linux environment
Mingw and cygwin are both a little troublesome. The simplest way is to install a real Linux, use a virtual machine or another machine on the network. This is not only fast, but you have a real environment.
2. C/C ++ language (probably you will)
3. familiar with GCC command lines in the getting-started stage, the most basic parameters, such as-G,-W,-o,-O, and-C, we recommend that you check man GCC (find the desired one)
4. Compile the first helloworld program: the Basic command GCC helloworld. C-o helloworld
The time of the previous four stages is estimated to be 1-2 days.
5. in the improvement stage, you need to get familiar with LD and GDB, write basic makefiles, understand make programs, and learn about * nix system IPC in programming, signal behavior (this phase is estimated to take at least a few months-a year to see personal insights and time spent)
So far, you have been a Linux software engineer. The following advanced settings are optional :-)
6. Advanced Stage: Learn the Linux kernel source code structure and drive development in programming, so as to streamline the kernel and understand the functions and usage of various libraries. Compiler: Understand the major libraries of the system, such as libstdc ++ and glibc2 (libc. so), ld-linux.so.2 (dynamic linker), Understanding GCC other options. LD, option. compile complex makefiles and be familiar with and be able to use automake and Autoconf (at this stage, you 'd better compile and install glibc, GCC, or even generate a cross-reference compiling system at least once) (there is basically no end to this stage. After you are familiar with the compilation system and kernel, you are basically an expert)

 

Note:

Editor VI, emacs
Compiler gcc
Integrated Development Environment kdevelop
Function library GTK +, QT, etc.
Inux versions are similar, and all versions are the same.

Linux versions are similar, and the kernel is the same. GCC/g ++ is used for compiler and GDB debugging.
Interface programming, including GTK and QT, and wxWidgets
Application Programming, as long as the C/C ++ library is used, there is no difference in files, memory, network, and Windows. The process and thread are somewhat different, but the principle is similar, it is easy to start, for databases, lightweight SQLite and complicated MySQL databases are all cross-platform,
Driver Programming in Linux is relatively simple compared with the Windows Driver, and there is no complicated framework.

Related Article

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.