Reputation: 135
I've been following the tutorials on learnopengl.com, but when I tried to compile a program with GLFW I get this error:
1>LINK : fatal error LNK1104: cannot open file 'glfw3.lib'
This is the code I have so far:
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
int main() {
std::cout << "HelloWorld" << std::endl;
return 0;
}
I know I have the "Include Directories" correct and "Additional Dependencies", because a) I double checked and b) It doesn't have any problems with glew
Upvotes: 1
Views: 2642
Reputation: 4850
You also need to point the "Library Directories" to where glfw3.lib
is located.
Upvotes: 1