For more information about Linux programming, see gcc-general Linux technology-Linux programming and kernel. To understand the linux kernel, vmware has installed Debian Linux. Because I used to use windows, I couldn't change my mindset at once (windows is really harmful. ^_^ ). Haha, after installing it, I first wrote a c program to warm up. After looking for a long time, the gcc didn't even load it (because it only installed the basic debian system). Then I should install a gcc first. Use the software manager that comes with linux, insert the installation disk, find gcc, and click apply (a simple sentence, it took me a long time ).
Next, use vim to write test. c. Vim has a lot to learn, but now it's just a warm-up. Learn a few simple things: (1) command mode -- Esc -- input mode (2) several simple File Access commands: q: wq: q! : F (3) several simple editing commands a, I, o
After writing test. c, you can start compiling. gcc uses preprocessing, compilation, assembly, and connection to one-stop services. Of course, you can also set parameters to determine the execution steps. Now we can use the simplest gcc-o test. c. Generate the test executable file. Enter test ,....., I didn't respond. Oh, there is still a xuanjicang in it. The path is not set. enter it. /test, press enter to check whether OK is successful.
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