Linux 适用于 Ubuntu 12.04 的 C++ 编译器/SDK - Netbeans
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10605823/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C++ compiler/SDK for Ubuntu 12.04 - Netbeans
提问by Lemon Juice
I have installed Netbeans 7.1 on Ubuntu. When I was activating C++ in netbeans, it didn't lead me to the page where C++ compiler/SDK exists, as it did in windows. I am using Cygwin in windows, but seems like it is not there for Linux.
我已经在 Ubuntu 上安装了 Netbeans 7.1。当我在 netbeans 中激活 C++ 时,它并没有像在 Windows 中那样引导我进入存在 C++ 编译器/SDK 的页面。我在 Windows 中使用 Cygwin,但似乎不适用于 Linux。
Please guide me to the correct location where I can find correct C++ compiler/SDK for Linux, which I can use in Netbeans.
请引导我到正确的位置,在那里我可以找到适用于 Linux 的正确 C++ 编译器/SDK,我可以在 Netbeans 中使用它。
采纳答案by sockeqwe
You need to install gcc
你需要安装 gcc
gcc is the gnu c and c++ compiler
gcc 是 gnu c 和 c++ 编译器
simply open a console and type:
只需打开一个控制台并输入:
sudo apt-get install build-essential
CPP setup instructions for netbeans: http://netbeans.org/community/releases/60/cpp-setup-instructions.html
netbeans 的 CPP 设置说明:http: //netbeans.org/community/releases/60/cpp-setup-instructions.html