Netbeans C++ not finding standard libraries (Macintosh)
I am trying to use Netbeans 6.7 (on a Mac) to c开发者_运维问答reate C++ applications. I started out with the standard "Hello World," just to test if everything was working correctly. First try std and could not be found. So I tried reinstalling the developer tools on my Mac OS X disk. After that Netbeans updated its c++ compiler info, but still cannot find std
or <iostream>
. Odder than this XCode seems to be working with C++ perfectly fine.
Any help fixing this would be greatly appreciated.
XCode's install scripts are a mess. It doesn't always put things in the right places, and in this case it sounds like the libs got misplaced as well. If you can't find them in /usr/lib or /usr/local/lib, your options from here are update to Lion and use the latest version of XCode and/or download a snapshot of the C++ Standard Lib from Apache or GNU and build it yourself.
(since this is an old question I'm posting for people who have stumbled here from Google)
精彩评论