Programming in linux

Source: Internet
Author: User
Programming in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. I completed Writing C ++ programs in linux today. In fact, it was done last night.

After reading a lot of information, I thought of C ++. I haven't written any programs for a long time. today, my hands are a little itchy, so I checked the basic method of writing programs in linux.

I used GEDIT as the editor and compiled it with gcc. the effect is acceptable, but the problem is still encountered at the beginning of compilation and the cause has not been found. Later I read the introduction of gcc to know g ++-Wall filename. cpp-o filename is used to compile c ++. sad. gcc is used all the time. Can it be good?

G ++-Wall hellocpp. cpp
Gcc-Wall hellocpp. cpp-lstdc ++
Gfortran-Wall hellocpp. cpp-lstdc ++

The preceding three commands have different methods, but their functions are equivalent.

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.