Netbeans IDE

Oct 8, 2011 at 8:32pm
I have a Mac Book Pro running Lion, and my IDE is Netbeans!

When I run simple programs such as the following, I get red lines underneath saying cannot find file unable to resolve identifier!

#include<iostream>
using namespace std;

#define PI 3.14159
#define NEWLINE

int main()
{
double r =5.0;
double circle;

circle = 2 * PI * r;
cout<<"circle";
cout<<"NEWLINE";

return 0;

}

I have used Netbeans for about a year, before using Snow Leopard no problems, but after I upgraded to Lion, I have this problem.

I would appreciate some advice on this matter.

Sincerely Steve Gaines
Last edited on Oct 8, 2011 at 8:39pm
Oct 8, 2011 at 9:58pm
Why don't you try switching up your IDE.
I'd recommended Code::Blocks, or Xcode. They're all good compilers.
Last edited on Oct 8, 2011 at 10:00pm
Oct 9, 2011 at 12:42am
Switching IDEs because of a minor misconfiguration is not logical. I would just review the settings for the project--particularly the compiler settings (such as include and library paths).
Oct 9, 2011 at 3:59am
closed account (1yR4jE8b)
If I was on a Mac, I'd be using XCode too...Netbeans has been fairly buggy lately, especially in the C++ department. With XCode you also get the Clang compiler, with it's sweet static analysis and awesome integration with the IDE.
Nov 5, 2011 at 5:16pm
See this forum:

http://stackoverflow.com/questions/6891841/trouble-using-g-after-upgrading-to-lion-new-xcode/8021457#8021457

I used Netbeans and C++ with success but I have problem after update Mac Os X.
Topic archived. No new replies allowed.