title: "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo." when using GCC
body: <p>While attempting to compile my C program, running the following command: </p>
  
  <pre><code>gcc pthread.c -o pthread
  </code></pre>
  
  <p>Returns:</p>
  
  <blockquote>
    <p>Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.</p>
  </blockquote>
  
  <p>and my code does not compile.</p>
  
  <p>Why is this happening and how can I fix this problem?</p>