Alexander Cogneau
Alexander Cogneau

Reputation: 1274

Simple netbeans C++ project doesn't compile

I installed Netbeans and as C++ compiler I installed cygwin. I made a simple project to test out my installation, this is the code:

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
    cout << "test";
    return 0;
}

This is the error message that it gives: http://pastebin.com/jRRh7MPi

I hope you guys can help me out.

Upvotes: 0

Views: 458

Answers (1)

Bartek Banachewicz
Bartek Banachewicz

Reputation: 39380

You need to either explicitly link to C++ standard library, or compile using g++ instead of gcc.

Upvotes: 2

Related Questions