title: String assignment has incomplete type
body: <p>I have a shared library that takes a new prompt (for the shell) as a parameter <code>argv[1]</code> I also have a global variable prompt type string as such</p>
  <pre><code>char *prompt[];
  
  int setprompt(int argc, char *argv[]) {
      prompt = argv[1];
      return 0;
  }
  </code></pre>
  <p>and I'm getting the following error</p>
  <blockquote>
  <p>setprompt.c:14:2: error: ‘prompt’ has an incomplete type</p>
  <p>prompt = argv[1];</p>
  <p>^</p>
  </blockquote>