If it works, and the version of Clang shows up, then you have successfully installed it on your Mac. To test the success of the installation of Clang, enter the clang -version command into your terminal. A dialog will appear telling you that it requires the Command Line Developer Tools, and will ask if you would like to install them.Type xcode-select -install in the terminal and hit "ENTER".While the Clang compiler provided by Apple is slightly " modified", it will still work with any IDE besides XCode. ![]() When you install XCode, you also automatically get the necessary Command Line Tools and the latest version of the Clang compiler by default, which you can use with Clion to run your code. On a Mac, you can get a compiler by installing XCode. ![]() Macbooks, or iMacs, do not come pre-installed with a compiler. Yes, you do need to install a compiler for CLion to be able to run C++ or C programs on it.
0 Comments
Leave a Reply. |