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).
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.