C ++ compilation-general Linux technology-Linux technology and application information. For more information, see the following section. I started to learn c ++ and wrote a simple c ++ program. problems occurred during compilation:
Pingtou @ wanglun :~ $ Ls
Desktop events ents downloads moudles musics pictures public vedios
Pingtou @ wanglun :~ $ Cd downloads
Pingtou @ wanglun :~ /Downloads $ ls
Pro1_1.cpp
Pingtou @ wanglun :~ /Downloads $ g ++-o pro1_1 pro1_1.cpp
The program g ++ is included in the following software packages:
* G ++
* Pentium-builder
Please try: sudo apt-get install <Selected software package>
Pingtou @ wanglun :~ /Downloads $ gcc-o pro1_1 pro1_1.cpp
Gcc: error trying to exec 'cc1plus ': execvp: No file or directory
Pingtou @ wanglun :~ /Downloads $
Failed to compile with gcc or g ++!
Please kindly advise!
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