找不到G ++,我已经尝试了3种不同的编译器 [英] G++ Not found, I've already tried 3 different compilers

查看:95
本文介绍了找不到G ++,我已经尝试了3种不同的编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用MinGW毫无问题地编译C代码,但是由于某种原因我无法编译C ++.我已经尝试过其他编译器,cygnus和cygwin. 我正在使用JGrasp.这是错误供稿:

I can compile C code no problem using MinGW but for some reason I can't compile C++. I already tried other compilers, cygnus and cygwin. I'm using JGrasp. Here's the error feed:

 ----jGRASP wedge2 error: command "g++" not found.
 ----   This command must be in the current working directory
 ----   or on the current PATH to use this function.
 ----   PATH is ";C:\Program Files\Common Files\Microsoft Shared\Windows Live;
                 C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live 
                 C:\windows\system32;
                 C:\windows;C:\windows\System32\Wbem;
                 C:\windows\System32\WindowsPowerShell\v1.0\;
                 C:\Program Files (x86)\Windows Live\Shared; 
                 C:\mingw\bin;  
                 C:\cygnus\cygwin-b20\H-i586-cygwin32\bin; 
                 C:\cygwin\bin;".
 ----jGRASP: operation complete.

推荐答案

按照我在注释中的指示,您需要使用MinGW安装程序安装g ++.默认情况下,MinGW仅安装C编译器.

As I instructed in the comments, you need to install g++ with the MinGW installer. By default, MinGW only installs the C compiler.

要获取g ++,请在安装过程中选中一个复选框.

To get g++, tick a checkbox during installation.

这篇关于找不到G ++,我已经尝试了3种不同的编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆