title: error LNK2019: unresolved external symbol _LoadShaders referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
body: <p>I am learning OpenGL and trying to run my first program. I have included all the files in include, lib, and bin folders. I have tried to add opengl32.lib;glut32.lib;glu32.lib; in Configuration properties -> linker -> input, but it did't work too.</p>
  
  <p>I am using Visual Studio 2012.</p>
  
  <pre><code>///////////////////////////////////////////////////////////////////////
  //
  // triangles.cpp
  //
  ///////////////////////////////////////////////////////////////////////
  
  #include &lt;iostream&gt;
  using namespace std;
  
  #include &lt;vgl.h&gt;
  #include &lt;LoadShaders.h&gt;
  
  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);
      glBindVertexArray(VAOs[Triangles]);
  
      GLfloat vertices[NumVertices][2] = {
          { -0.90, -0.90 }, // Triangle 1
          { 0.85, -0.90 },
          { -0.90, 0.85 },
          { 0.90, -0.85 }, // Triangle 2
          { 0.90, 0.90 },
          { -0.85, 0.90 }
      };
  
      glGenBuffers(NumBuffers, Buffers);
      glBindBuffer(GL_ARRAY_BUFFER, Buffers[ArrayBuffer]);
      glBufferData(GL_ARRAY_BUFFER, sizeof(vertices),
                  vertices, GL_STATIC_DRAW);
  
      ShaderInfo shaders[] = {
          { GL_VERTEX_SHADER, "triangles.vert" },
          { GL_FRAGMENT_SHADER, "triangles.frag" },
          { GL_NONE, NULL }
      };
  
      GLuint program = LoadShaders(shaders);
      glUseProgram(program);
  
      glVertexAttribPointer(vPosition, 2, GL_FLOAT,
      GL_FALSE, 0, BUFFER_OFFSET(0));
  
      glEnableVertexAttribArray(vPosition);
  }
  
  //---------------------------------------------------------------------
  //
  // display
  //
  
  void
  display(void)
  {
      glClear(GL_COLOR_BUFFER_BIT);
  
      glBindVertexArray(VAOs[Triangles]);
      glDrawArrays(GL_TRIANGLES, 0, NumVertices);
  
      glFlush();
  }
  
  //---------------------------------------------------------------------
  //
  // main
  //
  
  int
  main(int argc, char** argv)
  {
      glutInit(&amp;argc, argv);
      glutInitDisplayMode(GLUT_RGBA);
      glutInitWindowSize(512, 512);
      glutInitContextVersion(4, 3);
      glutInitContextProfile(GLUT_CORE_PROFILE);
      glutCreateWindow(argv[0]);
  
      if (glewInit()) {
          cerr &lt;&lt; "Unable to initialize GLEW ... exiting" &lt;&lt; endl;
          exit(EXIT_FAILURE);
      }
  
      init();
  
      glutDisplayFunc(display);
  
      glutMainLoop();
  }
  </code></pre>