title: GL3W and GLFW undefined reference errors
body: <p>I got a problem while trying to write an OpenGL application using GL3W and GLFW.
  Every time I build the code Code::Blocks(using GNU GCC Compiler) I get several
  "undefined reference" errors to several gl3w* and glfw* functions. I rechecked my build options
  (Linkers: opengl32, glu32, gdi32; Search directories/Compiler: include [means GL, GL3, GLFW and some helper headers]; Search directories/Linker: lib-mingw [glfw3 libraries]),
  but everything looks correct. Here's my code:</p>
  
  <pre><code>//////////////////////////////////////////////////////////////////////////////
  //
  //  Triangles.cpp
  //
  //////////////////////////////////////////////////////////////////////////////
  #include &lt;iostream&gt;
  using namespace std;
  
  #include "GL3/gl3.h"
  #include "GL3/gl3w.h"
  #include "GLFW/glfw3.h"
  #include "LoadShaders.h"
  
  #define BUFFER_OFFSET(a) ((void*)(a))
  
  enum VAO_IDs { Triangles, NumVAOs };
  enum Buffer_IDs { ArrayBuffer, NumBuffers };
  enum Attrib_IDs { vPosition = 0 };
  
  GLuint  VAOs[NumVAOs];
  GLuint  Buffers[NumBuffers];
  
  const GLuint  NumVertices = 6;
  
  //----------------------------------------------------------------------------
  //
  // init
  //
  
  void
  init( void )
  {
      glGenVertexArrays( NumVAOs, VAOs ); //Error gl3w
      glBindVertexArray( VAOs[Triangles] ); //Error gl3w
  
      GLfloat  vertices[NumVertices][2] = {
          { -0.90f, -0.90f }, {  0.85f, -0.90f }, { -0.90f,  0.85f },  // Triangle 1
          {  0.90f, -0.85f }, {  0.90f,  0.90f }, { -0.85f,  0.90f }   // Triangle 2
      };
  
      glCreateBuffers( NumBuffers, Buffers ); //Error gl3w
      glBindBuffer( GL_ARRAY_BUFFER, Buffers[ArrayBuffer] ); //Error gl3w
      glBufferStorage( GL_ARRAY_BUFFER, sizeof(vertices), vertices, 0); //Error gl3w
  
      ShaderInfo  shaders[] =
      {
          { GL_VERTEX_SHADER, "media/shaders/triangles/triangles.vert" },
          { GL_FRAGMENT_SHADER, "media/shaders/triangles/triangles.frag" },
          { GL_NONE, NULL }
      };
  
      GLuint program = LoadShaders( shaders ); //Error LoadShaders
      glUseProgram( program ); //Error gl3w
  
      glVertexAttribPointer( vPosition, 2, GL_FLOAT,
                             GL_FALSE, 0, BUFFER_OFFSET(0) ); //Error gl3w
      glEnableVertexAttribArray( vPosition ); //Error gl3w
  }
  
  //----------------------------------------------------------------------------
  //
  // display
  //
  
  void
  display( void )
  {
      static const float black[] = { 0.0f, 0.0f, 0.0f, 0.0f };
  
      glClearBufferfv(GL_COLOR, 0, black); //Error gl3w
  
      glBindVertexArray( VAOs[Triangles] ); //Error gl3w
      glDrawArrays( GL_TRIANGLES, 0, NumVertices ); //Error gl3w
  }
  
  //----------------------------------------------------------------------------
  //
  // main
  //
  
  int
  main( int argc, char** argv )
  {
      glfwInit(); //Error glfw
  
      GLFWwindow* window = glfwCreateWindow(800, 600, "Triangles", NULL, NULL); //Error glfw
  
      glfwMakeContextCurrent(window); //Error glfw
      gl3wInit();//Error gl3w
  
      init();
  
      while (!glfwWindowShouldClose(window))//Error glfw
      {
          display();
          glfwSwapBuffers(window);//Error glfw
          glfwPollEvents();//Error glfw
      }
  
      glfwDestroyWindow(window);//Error glfw
  
      glfwTerminate();//Error glfw
  }
  </code></pre>
  
  <p>All errors are undefined reference errors</p>
  
  <p>Thanks in advice for any help!</p>