title: Linker command failed with exit code 1 (use -v to see invocation) VisualStudio
body: <p>I've got very annoying error when trying to build my app.</p>
  
  <p>Here is complete error stack</p>
  
  <pre><code>Severity    Code    Description Project File    Line
  Error       linker command failed with exit code 1 (use -v to see invocation)   PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\clang.exe  1
  Error       undefined reference to 'glGetAttribLocation'    PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   70
  Error       undefined reference to 'glCreateProgram'    PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   87
  Error       undefined reference to 'glAttachShader' PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   91
  Error       undefined reference to 'glAttachShader' PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   92
  Error       undefined reference to 'glLinkProgram'  PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   93
  Error       undefined reference to 'glGetProgramiv' PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   96
  Error       undefined reference to 'glDeleteProgram'    PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   100
  Error       undefined reference to 'glCreateShader' PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   111
  Error       undefined reference to 'glShaderSource' PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   115
  Error       undefined reference to 'glCompileShader'    PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   116
  Error       undefined reference to 'glGetShaderiv'  PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   119
  Error       undefined reference to 'glGetShaderiv'  PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   124
  Error       undefined reference to 'glDeleteShader' PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   128
  Error       undefined reference to 'glUseProgram'   PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   172
  Error       undefined reference to 'glVertexAttribPointer'  PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   174
  Error       undefined reference to 'glEnableVertexAttribArray'  PewPew.NativeActivity   c:\workspace\PewPew\PewPew\PewPew.NativeActivity\Renderer.cpp   175
  </code></pre>
  
  <p>Well, it seems to be related to OpenGL calls, but I can't understand how exactly.</p>
  
  <p>I've already included</p>
  
  <pre><code>#include &lt;GLES2/gl2.h&gt;
  #include &lt;GLES2/gl2ext.h&gt;
  #include &lt;EGL/egl.h&gt;
  #include &lt;GLES/gl.h&gt;
  </code></pre>
  
  <p>But still no luck.</p>
  
  <p>Any suggestions about what am I doing wrong?</p>