title: Error: Could not determine kind of name for C.stdout when building example from C? Go? Cgo! article
body: <p>I'm trying to build the following example from <a href="http://golang.org/doc/articles/c_go_cgo.html" rel="nofollow">C? Go? Cgo!</a>:</p>
  
  <pre><code>package print
  
  /*
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  */
  import "C"
  import "unsafe"
  
  func Print(s string) {
      cs := C.CString(s)
      C.fputs(cs, (*C.FILE)(C.stdout))
      C.free(unsafe.Pointer(cs))
  }
  </code></pre>
  
  <p>I'm running Go on Win7 64 and am using the 64 bit version of GCC from <a href="http://tdm-gcc.tdragon.net/" rel="nofollow">http://tdm-gcc.tdragon.net/</a>
  Running this on Linux isn't an option.</p>
  
  <p>The error I get is:</p>
  
  <pre><code>could not determine kind of name for C.stdout
  </code></pre>
  
  <p>I haven't been able to find any documentation on this message, and very few hits show up on Google.</p>
  
  <p>Does anyone have ideas on what's causing this? Thanks in advance!</p>