(Background: I always used to compile c++ codes through cmd-line using g++ at school's computers. It has been a while since I deleted any IDE on my laptop and I have downloaded NetBeans IDE a month ago.)
I am planning to do some c++ program practices and noticed that I'm having "Run failed" with exit value 127 (Build passes). I noticed from other posts that exit value 127 basically means the c++ compiler cannot identify 'string' variable types. Here is my code:
#include <iostream>
#include <string>
using namespace std;
/*
*
*/
int main(int argc, char** argv) {
//Bunny bunny;
string name;
return 0;
}
As you can see, I have called <string>
library that theoretically should enable the compiler to recognise string data type (or avoid run fail).
Edit: Here is the message regarding the 'Run fail' -
RUN FAILED (exit value 127, total time: 16ms)
My guess is that I need to install a program along with NetBeans for this to pass at 'Run'. I am quite bad at what is needed to install. Any help/suggestions will be appreciated.