texture-mapping/mesh.cpp:61: undefined reference to `_imp_glewBindVertexArray' texture-mapping/mesh.cpp:56: undefined reference to `_imp_glewBindVertexArray'ĬMakeFiles\texture_mapping.dir/objects.a(): In function `ZN4Mesh4DrawEv': texture-mapping/mesh.cpp:55: undefined reference to `_imp_glewBindVertexArray' texture-mapping/mesh.cpp:53: undefined reference to `_imp_glewBufferData' texture-mapping/mesh.cpp:52: undefined reference to `_imp_glewBindBuffer' texture-mapping/mesh.cpp:50: undefined reference to `_imp_glewVertexAttribPointer' texture-mapping/mesh.cpp:49: undefined reference to `_imp_glewEnableVertexAttribArray' texture-mapping/mesh.cpp:47: undefined reference to `_imp_glewBufferData' texture-mapping/mesh.cpp:46: undefined reference to `_imp_glewBindBuffer' texture-mapping/mesh.cpp:44: undefined reference to `_imp_glewVertexAttribPointer' texture-mapping/mesh.cpp:43: undefined reference to `_imp_glewEnableVertexAttribArray' texture-mapping/mesh.cpp:41: undefined reference to `_imp_glewBufferData' texture-mapping/mesh.cpp:40: undefined reference to `_imp_glewBindBuffer' texture-mapping/mesh.cpp:39: undefined reference to `_imp_glewGenBuffers' texture-mapping/mesh.cpp:37: undefined reference to `_imp_glewBindVertexArray' texture-mapping/mesh.cpp:36: undefined reference to `_imp_glewGenVertexArrays' texture-mapping/mesh.cpp:30: undefined reference to `_imp_glewDeleteVertexArrays'ĬMakeFiles\texture_mapping.dir/objects.a(): In function `ZN4Mesh8InitMeshERK12IndexedModel': Clion recognizes them in the project (they aren't appearing red with errors), but when it is built (when I attempt to run it in CLion), I get these errors: CMakeFiles\texture_mapping.dir/objects.a(): In function `ZN4MeshD2Ev': So, I put all of the libraries I needed, but it doesn't appear to be recognizing them in the code. I tweaked it until it didn't give me any more errors in CLion, but the header files are still not recognized in my code. Here is what I have: cmake_minimum_required(VERSION 3.3) I am still new to cmake, and I don't understand what I am doing wrong with my CMakeLists.txt. However, now that the code is all working (in Visual Studio, anyways), I want to be able to use CLion for it, because that is my preferred IDE. I initially built it in Visual Studio, because I couldn't ever figure out how to get cmake to work with Clion. I am trying to use several libraries in conjunction with OpenGL to texture some objects. I am using CLion, which uses cmake to build it's projects. I can't get the additional libraries I am working with to link into my project properly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |