I'm attempting to follow the tutorial on learnopengl.com and I've created a directory on my C: drive to house my include and lib folders. I then linked them to Visual Studio 2019 and included the proper header files.
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
int main() {
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
return 0;
}
I get 2 errors from this:
unresolved external symbol glfwInit referenced in function main
unresolved external symbol glfwWindowHint referenced in function main
What could cause this?
I have looked for similar questions to mine but was unsuccessful.