title: Increase maxmimum stack size in cgo
body: <p>I am using c++ and GO from the first answer of <a href="https://stackoverflow.com/questions/1713214/how-to-use-c-in-go">this post</a></p>
  
  <p>I know that In c++ there is a default maximum stack size of 1MB (on windows). To increase that limit with with gcc and g++ I read <a href="http://www.cplusplus.com/forum/general/134645/" rel="nofollow noreferrer">this</a> forum post. This answer seemed correct</p>
  
  <blockquote>
    <p>Well, I don't know if you can set it to unlimited, but (assuming Windows) you can try passing
    <code>-Wl,--stack,&lt;size&gt;</code>
    (where <code>&lt;size&gt;</code> is in bytes)
    to set the stack size.</p>
    
    <p>(From doing some tests, it seems the default is 2 MB)</p>
  </blockquote>
  
  <p>How can I pass the same thing through cgo?</p>