Jump to content

  • Log In with Google      Sign In   
  • Create Account


Dakattack

Member Since 05 Jan 2013
Offline Last Active Jan 15 2013 09:26 PM

#5018017 GLFW Linking errors Visual Studio 10

Posted by Dakattack on 05 January 2013 - 08:55 PM

I'm having trouble setting up GLFW on Visual Studio 10.0 I was following this guys tutorial. However I am still getting linking errors

 

 

1>GLFW.lib(window.obj) : error LNK2005: __glfwClearWindowHints already defined in window.obj 1>GLFW.lib(window.obj) : error LNK2005: __glfwClearInput already defined in window.obj
1>GLFW.lib(window.obj) : error LNK2005: __glfwInputKey already defined in window.obj
1>GLFW.lib(window.obj) : error LNK2005: __glfwInputChar already defined in window.obj
1>GLFW.lib(window.obj) : error LNK2005: __glfwInputMouseClick already defined in window.obj
1>GLFW.lib(window.obj) : error LNK2005: __glfwChooseFBConfig already defined in window.obj
1>GLFW.lib(window.obj) : error LNK2005: __glfwInputDeactivation already defined in window.obj
1>GLFW.lib(init.obj) : error LNK2005: __glfwInitialized already defined in init.obj
1>GLFW.lib(glext.obj) : error LNK2005: __glfwParseGLVersion already defined in glext.obj
1>GLFW.lib(glext.obj) : error LNK2005: __glfwStringInExtensionString already defined in glext.obj
1>GLFW.lib(glext.obj) : error LNK2005: __glfwRefreshContextParams already defined in glext.obj
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library

 

 

 I have tried googling the errors but I havent found much help. I have linked opengl32/lib and glu32.lib in the linker settings. I have also linked the appropriate folders for include and lib. I downloaded and linked both the win32 binaries and the original zip from the GLFW site.

 

 

 
#include <windows.h>
#include <stdio.h>   
#include <stdlib.h>
#include <GL/glew.h>
#define GLFW_DLL
#include <GL/glfw.h>
#pragma comment(lib,"glfwdll.lib")
#include <GL/glm/glm.hpp>
 
int main()
{
glfwInit();
glfwSleep( 1.0 );
glfwTerminate();
}

Any help is appreciated..h>.h>.h>




PARTNERS