Domanda

I am using AppCode to develop in C++ on MacOS but encountered an issue that I cannot overcome no matter how hard I try. I am missing C++ documentation on MacOS. When I query a man pages for stdc function then everything is just all right, even AppCode provides perfect inline documentation. But I don't know how to install documentation and manpages for C++ and its standard libraries. On linux it's easy and yum/apt-get/up2date stdlibc++-doc works just fine.

How am I supposed to get it working on Mac OS?

È stato utile?

Soluzione

My best recommendation is to go get Dash from the Mac App Store. It's a free app (with an IAP upgrade that removes some annoyances; the app is definitely worth paying for) that provides access to documentation sets for many languages, including C++. Its C++ documentation is based on cppreference.com. In any case, using Dash it's really easy to get the documentation on whatever C++ construct you need. Here's a screenshot of the documentation on std::vector:

enter image description here

Altri suggerimenti

I'm not sure about AppCode, but XCode doesn't install the command line tools by default. To install them, start XCode, Open the XCode menu and select Preferences. Click the Downloads tab. Install the command line tools. That worked for me to get the standard C and Objective C libraries at least.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top