hello , i use <qopengl.h> header for my experiments in opengl and qt.
The problem is that i create a small library with templates, all the files are .hpp .
When i must test the project i must import all the needed .hpp files in the test project, but i don't have a library(.lib) for the called gl primitives function like bindBuffer createbuffer ecc , and this is the result:
Qt Code:
  1. 2>main.obj : error LNK2019: unresolved external symbol glBindBuffer referenced in function "public: void __cdecl OPEN::CShaderParItemVbo<struct glm::detail::tvec3<float> >::Create(unsigned int)" (?Create@?$CShaderParItemVbo@U?$tvec3@M@detail@glm@@@OPEN@@QEAAXI@Z)
  2. 2>main.obj : error LNK2019: unresolved external symbol glGenBuffers referenced in function "public: void __cdecl OPEN::CShaderParItemVbo<struct glm::detail::tvec3<float> >::Create(unsigned int)" (?Create@?$CShaderParItemVbo@U?$tvec3@M@detail@glm@@@OPEN@@QEAAXI@Z)
  3. 2>main.obj : error LNK2019: unresolved external symbol glBufferData referenced in function "public: void __cdecl OPEN::CShaderParItemVbo<struct glm::detail::tvec3<float> >::Create(unsigned int)" (?Create@?$CShaderParItemVbo@U?$tvec3@M@detail@glm@@@OPEN@@QEAAXI@Z)
  4. 2>main.obj : error LNK2019: unresolved external symbol glCreateProgram referenced in function "public: __cdecl OPEN::CShader::CShader(void)" (??0CShader@OPEN@@QEAA@XZ)
  5. 2>main.obj : error LNK2019: unresolved external symbol glEnableVertexAttribArray referenced in function "public: void __cdecl OPEN::CShaderParItemVbo<struct glm::detail::tvec3<float> >::Create(unsigned int)" (?Create@?$CShaderParItemVbo@U?$tvec3@M@detail@glm@@@OPEN@@QEAAXI@Z)
  6. 2>main.obj : error LNK2019: unresolved external symbol glGetAttribLocation referenced in function "public: void __cdecl OPEN::CShaderParItemVbo<struct glm::detail::tvec3<float> >::Create(unsigned int)" (?Create@?$CShaderParItemVbo@U?$tvec3@M@detail@glm@@@OPEN@@QEAAXI@Z)
  7. 2>main.obj : error LNK2019: unresolved external symbol glVertexAttribPointer referenced in function "public: void __cdecl OPEN::CShaderParItemVbo<struct glm::detail::tvec3<float> >::Create(unsigned int)" (?Create@?$CShaderParItemVbo@U?$tvec3@M@detail@glm@@@OPEN@@QEAAXI@Z)
  8. 2>main.obj : error LNK2019: unresolved external symbol glBindVertexArray referenced in function "public: unsigned int __cdecl OPEN::CEffect::internals::CreateVba(unsigned int)" (?CreateVba@internals@CEffect@OPEN@@QEAAII@Z)
  9. 2>main.obj : error LNK2019: unresolved external symbol glGenVertexArrays referenced in function "public: unsigned int __cdecl OPEN::CEffect::internals::CreateVba(unsigned int)" (?CreateVba@internals@CEffect@OPEN@@QEAAII@Z)
  10. 2>C:\Open2\Open2\x64\Debug\\qtgltest.exe : fatal error LNK1120: 9 unresolved externals
  11. ========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
To copy to clipboard, switch view to plain text mode 

What library i must import for the <qopengl.h> header with qt?
thanks.