Answer the question
In order to leave comments, you need to log in
Error LNK2001: Unresolved external symbol when building project with GLFW - how to fix?
1>controls.obj : error LNK2001: неразрешенный внешний символ ""struct GLFWwindow * window" ([email protected]@[email protected]@A)"
glew32.lib;opengl32.lib;glfw3.lib;glu32.lib;
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <GLFW/glfw3.h>
class Foo
{
GLFWwindow* window;
};
// Include GLM
#include <glm/glm.hpp>
using namespace glm;
int main(void)
{
return 0;
}
class Foo
{
GLFWwindow* window;
};
GLFWwindow* window;
, no error occurs.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question