I've added the .dll to Windows/System32, the .lib to VS/lib, and the .h to the VS/include.
All that would be left is linking it through the project. This is what I have:
#include <glfw.h>
int main(void)
{
/* Initialize the library */
if (!glfwInit())
return -1;
/* Create a windowed mode window and its OpenGL context */
if (!glfwOpenWindow(640, 480, 8, 8, 8, 0, 24, 0, GLFW_WINDOW))
return -1;
/* Loop until the user closes the window */
while (glfwGetWindowParam(GLFW_OPENED))
{
/* Render here */
/* Swap front and back buffers and process events */
glfwSwapBuffers();
}
return 0;
}
1>Main.obj : error LNK2019: unresolved external symbol _glfwSwapBuffers referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _glfwGetWindowParam referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _glfwOpenWindow referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol _glfwInit referenced in function _main
1>C:\Users\Danny\documents\visual studio 2010\Projects\OGL2\Debug\OGL2.exe : fatal error LNK1120: 4 unresolved externals
I've went to Project > Properties > Configuration Properties > Linker > Added the following to Additional Dependencies:
opengl32.lib;GLFW.lib;glu32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
And for good measure, I also set Ignore All Default Libraries to "No".
I know I should have linked: opengl32.lib, GLFW.lib, glu32.lib, kernel32.lib and user32.lib
Unfortunately, the LNK 2019 problems persist. Really am unsure why. All help is greatly appreciated.