dimanche 12 juin 2016

OpenGL Linking problems


I am trying to build an OpenGL app in c++. I use the glew and glfw libraries. Now I wanted to create some textures, but now it says:

1>model.obj : error LNK2019: unresolved external symbol __imp_glBindTexture referenced in function "public: void __cdecl Texture::Bind(unsigned int)" (?Bind@Texture@@QEAAXI@Z)
1>model.obj : error LNK2019: unresolved external symbol __imp_glGenTextures referenced in function "public: bool __cdecl Texture::Load(void)" (?Load@Texture@@QEAA_NXZ)
1>model.obj : error LNK2019: unresolved external symbol __imp_glTexImage2D referenced in function "public: bool __cdecl Texture::Load(void)" (?Load@Texture@@QEAA_NXZ)
1>model.obj : error LNK2019: unresolved external symbol __imp_glTexParameterf referenced in function "public: bool __cdecl Texture::Load(void)" (?Load@Texture@@QEAA_NXZ)
1>C:UsersDynamitos5DocumentscudaOpenGLTestexternallibmagickdb.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64'
1>C:UsersDynamitos5DocumentscudaOpenGLTestexternallibmagickrl.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64'
1>C:UsersDynamitos5DocumentscudaOpenGLTestx64DebugOpenGLTest3.exe : fatal error LNK1120: 16 unresolved externals

Everything worked so far(glGenVertexArrays(), glDrawArrays(), etc.), only the texture functions(glGenTextures(), glBindTexture(), etc.) don't work. The Linker is set up like this: glew32.lib;glfw3.lib;assimp.lib;devil.lib;magickdb.lib;magickrl.lib;%(AdditionalDependencies)

VC include dir: C:UsersDynamitos5DocumentscudaOpenGLTestexternalinclude;$(IncludePath) VC lib dir: C:UsersDynamitos5DocumentscudaOpenGLTestexternallib;$(LibraryPath)


Aucun commentaire:

Enregistrer un commentaire