The C complier appear on "/ usr / bin / cc" is not able to complie a simple test program error handling

MacOs after Bahrain Clion need to install the compiler can compile the program properly.

After you install Cmake and Xcode encountered such a problem:

Because there is no licence

Input terminal: sudo xcodebuild -license 

After you have finished entering the password, the text follows a long list of similar agreements will be the last line of the following tips:

It has been long time press the space bar on the line until you see:

This time as long as at the end of input:

agree

Then, return to Clion, File-Reload Cmake Project

Until then run the program, you should be successful.

Published 57 original articles · won praise 9 · views 3595

Guess you like

Origin blog.csdn.net/Jayphone17/article/details/104127109