GraphicsGL外部参考错误

时间:2019-03-16 17:27:30

标签: c++ linker-errors

很抱歉,如果此消息已发布在其他地方或该消息太过繁琐,但在解决C ++项目(.exe)中的构建错误时遇到问题。

您认为可以看看我吗,谢谢!

1>------ Build started: Project: TestProject, Configuration: Debug x64 ------
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glBindTexture referenced in function "public: class jrc::Error __cdecl jrc::GraphicsGL::init(void)" (?init@GraphicsGL@jrc@@QEAA?AVError@2@XZ)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glBlendFunc referenced in function "public: void __cdecl jrc::GraphicsGL::reinit(void)" (?reinit@GraphicsGL@jrc@@QEAAXXZ)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glClear referenced in function "public: void __cdecl jrc::GraphicsGL::flush(float)" (?flush@GraphicsGL@jrc@@QEAAXM@Z)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glClearColor referenced in function "public: void __cdecl jrc::GraphicsGL::flush(float)" (?flush@GraphicsGL@jrc@@QEAAXM@Z)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glDrawArrays referenced in function "public: void __cdecl jrc::GraphicsGL::flush(float)" (?flush@GraphicsGL@jrc@@QEAAXM@Z)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glEnable referenced in function "public: void __cdecl jrc::GraphicsGL::reinit(void)" (?reinit@GraphicsGL@jrc@@QEAAXXZ)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glGenTextures referenced in function "public: class jrc::Error __cdecl jrc::GraphicsGL::init(void)" (?init@GraphicsGL@jrc@@QEAA?AVError@2@XZ)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glPixelStorei referenced in function "public: class jrc::Error __cdecl jrc::GraphicsGL::init(void)" (?init@GraphicsGL@jrc@@QEAA?AVError@2@XZ)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glTexImage2D referenced in function "public: class jrc::Error __cdecl jrc::GraphicsGL::init(void)" (?init@GraphicsGL@jrc@@QEAA?AVError@2@XZ)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glTexParameteri referenced in function "public: class jrc::Error __cdecl jrc::GraphicsGL::init(void)" (?init@GraphicsGL@jrc@@QEAA?AVError@2@XZ)
1>GraphicsGL.obj : error LNK2019: unresolved external symbol __imp_glTexSubImage2D referenced in function "private: bool __cdecl jrc::GraphicsGL::addfont(char const *,enum jrc::Text::Font,unsigned int,unsigned int)" (?addfont@GraphicsGL@jrc@@AEAA_NPEBDW4Font@Text@2@II@Z)
1>Window.obj : error LNK2019: unresolved external symbol __imp_glLoadIdentity referenced in function "public: class jrc::Error __cdecl jrc::Window::initwindow(void)" (?initwindow@Window@jrc@@QEAA?AVError@2@XZ)
1>Window.obj : error LNK2019: unresolved external symbol __imp_glMatrixMode referenced in function "public: class jrc::Error __cdecl jrc::Window::initwindow(void)" (?initwindow@Window@jrc@@QEAA?AVError@2@XZ)
1>Window.obj : error LNK2019: unresolved external symbol __imp_glViewport referenced in function "public: class jrc::Error __cdecl jrc::Window::initwindow(void)" (?initwindow@Window@jrc@@QEAA?AVError@2@XZ)
1>D:\TestProject\x64\Debug\TestProject.exe : fatal error LNK1120: 14 unresolved externals
1>Done building project "TestProject.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

我也不知道LINK错误指的是什么。我正在使用Visual Studio 2017,但对于“平台工具集”,我将其设置为“ Visual Studio 2015(v140)”。在Debug x64中运行

我正在使用以下库: 图形:GLFW3,GLEW,FreeType 音频:低音

0 个答案:

没有答案