Я пытаюсь создать приложение OpenGL в C++. Я использую библиотеки glew и glfw. Теперь я хотел бы создать некоторые текстуры, но теперь он говорит:Проблемы с соединением OpenGL
1>model.obj : error LNK2019: unresolved external symbol __imp_glBindTexture referenced in function "public: void __cdecl Texture::Bind(unsigned int)" ([email protected]@@[email protected])
1>model.obj : error LNK2019: unresolved external symbol __imp_glGenTextures referenced in function "public: bool __cdecl Texture::Load(void)" ([email protected]@@QEAA_NXZ)
1>model.obj : error LNK2019: unresolved external symbol __imp_glTexImage2D referenced in function "public: bool __cdecl Texture::Load(void)" ([email protected]@@QEAA_NXZ)
1>model.obj : error LNK2019: unresolved external symbol __imp_glTexParameterf referenced in function "public: bool __cdecl Texture::Load(void)" ([email protected]@@QEAA_NXZ)
1>C:\Users\Dynamitos5\Documents\cuda\OpenGLTest\external\lib\magickdb.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64'
1>C:\Users\Dynamitos5\Documents\cuda\OpenGLTest\external\lib\magickrl.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64'
1>C:\Users\Dynamitos5\Documents\cuda\OpenGLTest\x64\Debug\OpenGLTest3.exe : fatal error LNK1120: 16 unresolved externals
Все работало до сих пор (glGenVertexArrays(), glDrawArrays() и т.д.), только функции текстуры (glGenTextures(), glBindTexture(), и т. д.) не работают. Линкер устанавливается следующим образом: glew32.lib;glfw3.lib;assimp.lib;devil.lib;magickdb.lib;magickrl.lib;%(AdditionalDependencies)
VC включают реж: C:\Users\Dynamitos5\Documents\cuda\OpenGLTest\external\include;$(IncludePath)
VC Lib реж: C:\Users\Dynamitos5\Documents\cuda\OpenGLTest\external\lib;$(LibraryPath)
Вы не нашли opengl32.lib? – BDL
@BDL Я думал, что opengl32.lib был предназначен только для устаревших вещей OpenGL1.1. Непонимание с моей стороны/_ \. Я соглашусь, если вы опубликуете его как ответ – Dynamitos