Netbeans C++ configuration on a MAC OS X Mountain Lion

I have NetBeans installed with a C++ compiler. When I first downloaded NetBeans and the compiler, netBeans automatically configured the C++ compiler. Now I have upgraded to the new operating system mountain lion. Now whenever I try to compile a C++ project it tells me that the C++ compiler is not configured.


This started happening since I upgraded the operating system. Here is a screenshot of the problem. The compiler that I'm using is gcc. 4.7.1, if anyone has any idea on how to fix it I really appreciate it. Once again, it was working perfectly fine, but then I upgraded the operating system.User uploaded file

MacBook Pro, Mac OS X (10.7.4)

Posted on Aug 2, 2012 2:06 PM

Reply
3 replies

Aug 3, 2012 12:44 PM in response to jojojona

That's the problem with rolling your own development system and making unsupported modifications to the operating system. You are unlikely to find anyone running either Netbeans or GCC 4.7.1 on Mountain Lion.


GCC has never fully supported the Mac. It has always relied upon Xcode, which non longer relies upon GCC. I suggest downloading the latest Xcode and installing the command line tools. Personally, I would stop there and use clang++ and avoid GCC or else you are likely to encounter similar problems any time you upgrade.


GCC is about "freedom" (in the Orwellian sense), not ease of configuration. If you ask GNU, they would recommend against using a Mac to begin with.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Netbeans C++ configuration on a MAC OS X Mountain Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.