1
General / Re: SFML on Win32 with Cmake, cannot link to glew
« on: November 30, 2013, 07:47:07 pm »
In on win7 x64, using Visual Studio 2013 compiler (VC120). SFML version is 2.1. Here are a few errors:
120 IntelliSense: identifier "glVertexAttribPointer" is undefined
114 IntelliSense: identifier "glUseProgram" is undefined
117 IntelliSense: identifier "glUniform1i" is undefined
112 IntelliSense: identifier "glGetUniformLocation" is undefined
113 IntelliSense: identifier "glGetAttribLocation" is undefined
121 IntelliSense: identifier "glEnableVertexAttribArray" is undefined
Error 38 error C2065: 'GL_VERTEX_SHADER' : undeclared identifier
Error 94 error C2065: 'GL_VERTEX_SHADER' : undeclared identifier
Error 15 error C2065: 'GL_ARRAY_BUFFER' : undeclared identifier
Error 69 error C2065: 'GLchar' : undeclared identifier
And a lot more like these... so basically it doesn't recognizer the usual non-windows opengl, which is usually resolved by using GLEW.
And my headers:
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include <SFML/Graphics.hpp>
120 IntelliSense: identifier "glVertexAttribPointer" is undefined
114 IntelliSense: identifier "glUseProgram" is undefined
117 IntelliSense: identifier "glUniform1i" is undefined
112 IntelliSense: identifier "glGetUniformLocation" is undefined
113 IntelliSense: identifier "glGetAttribLocation" is undefined
121 IntelliSense: identifier "glEnableVertexAttribArray" is undefined
Error 38 error C2065: 'GL_VERTEX_SHADER' : undeclared identifier
Error 94 error C2065: 'GL_VERTEX_SHADER' : undeclared identifier
Error 15 error C2065: 'GL_ARRAY_BUFFER' : undeclared identifier
Error 69 error C2065: 'GLchar' : undeclared identifier
And a lot more like these... so basically it doesn't recognizer the usual non-windows opengl, which is usually resolved by using GLEW.
And my headers:
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include <SFML/Graphics.hpp>