Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我安装了 Netbeans 并作为 C++ 编译器安装了 cygwin。我做了一个简单的项目来测试我的安装,这是代码:
#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char** argv) { cout << "test"; return 0; }
这是它给出的错误消息:http: //pastebin.com/jRRh7MPi
我希望你们能帮助我。
您需要显式链接到 C++ 标准库,或者使用g++而不是gcc.
g++
gcc