A small Summary of Gcc's use of absolute beginners

Source: Internet
Author: User
Gcc uses an absolute elementary Summary-general Linux technology-Linux programming and kernel information. The following is a detailed description. I want to practice data structure. I will often use c/c ++ to write programs later. It is too cumbersome to use vc. If I run one. the cpp file also needs to create a project, which is always troublesome and generates so many files at runtime, all of which are several megabytes. Not good, hey. Directly Using dev-cpp is also uncomfortable. I thought about it. The gcc with dev-cpp is good. Hey hey, I just used it, and added EditPlus, cool. Hey, how much time and space is saved? (my current is only 40 GB, and the dual-system linux gives 10 Gb, windows only has 30 GB, vs2005 is faster than 5 GB, 555. There are also a lot of software, such as eclipse, SQL 2005 express, tomcat,... running karting che Hey)

Please refer to the following for more information.

Download the gcc compiler, install it to a directory (I use the gcc in dev-cpp), and add it to the environment variable path.

D: \ CCpp \ Dev-Cpp \ bin;

This directory is the directory where the gw.cmd.exe file is located.


There are the following c ++ source code: hi. cpp

# Include
Using namespace std;

Int main ()
{
Cout <"hi" <
Return 0;
}
Go to the directory where the hi. cpp file is located and enter:

G ++-o hi. cpp

In this example, hi.exe is added to the directory to run.

(-O hi indicates the output file name. If-o hi is removed and only g ++ hi.cppis is input, then unzip a.exe)

For advanced usage, you can search a lot on the Internet.
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.