title: Setup GLEW + CodeBlocks
body: <p>I want to make GLEW work with CodeBlocks and have been trying to get<br>
  the first method presented on the <a href="http://glew.sourceforge.net/install.html" rel="nofollow">site</a> to work.<br>
  This is the method to compile glew statically into the executable.<br> But I haven't managed to get it right.<br>
  I'm on a PC, Windows 7, running the CodeBlocks 10.05.</p>
  
  <p>This is what I've done so far:</p>
  
  <ul>
  <li>Downloaded GLEW 1.7.0</li>
  <li>Unziped to C:</li>
  <li>Created empty project in CodeBlocks</li>
  <li>Moved glew.h, wglew.h and glew.c into my project source directory</li>
  <li>Added all of the three files to the project</li>
  <li><p>Changed include path in glew.c for glew.h and wglew.h from</p>
  
  <pre><code>#include &lt;GL/glew.h&gt; 
  #include &lt;GL/wglew.h&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>#include "glew.h"
  #include "wglew.h"
  </code></pre></li>
  <li><p>Created a simple main-file with the following code</p>
  
  <pre><code>#define GLEW_STATIC
  #include "glew.h"
  
  int main() {
      glewInit();
      return 0;
  }
  </code></pre></li>
  </ul>
  
  <p>And with this the compilation will result in tons of warnings
  and errors.</p>
  
  <ul>
  <li><p>Errors such as:</p>
  
  <pre><code>glew.c|2933|undefined reference to `wglGetProcAddress@4'|
  glew.c|2934|undefined reference to `wglGetProcAddress@4'|
  glew.c|2935|undefined reference to `wglGetProcAddress@4'|
  glew.c|2936|undefined reference to `wglGetProcAddress@4'|
  </code></pre></li>
  <li><p>Warnings such as:</p>
  
  <pre><code>glew.c|10050|warning: '__wglewReleaseVideoCaptureDeviceNV' redeclared without dllimport attribute: previous dllimport ignored|
  glew.c|10052|warning: '__wglewBindVideoImageNV' redeclared without dllimport attribute: previous dllimport ignored|
  glew.c|10053|warning: '__wglewGetVideoDeviceNV' redeclared without dllimport attribute: previous dllimport ignored|
  glew.c|10054|warning: '__wglewGetVideoInfoNV' redeclared without dllimport attribute: previous dllimport ignored|
  glew.c|10055|warning: '__wglewReleaseVideoDeviceNV' redeclared without dllimport attribute: previous dllimport ignored|
  </code></pre></li>
  </ul>
  
  <p>Where did I go wrong?<br>
  I would be happy to share more information if necessary!<br></p>