2016-09-16 8 views
0

glew32.libをリンカ - >入力 - >追加のDepに追加し、GLEW_STATIC定義をプリプロセッサに追加しました。私はこの設定が正しいと確信しています。しかし、私はリンクエラーを示しています。それは他の設定が必要ですか?私はこの問題を3日間Googleに持ち、助けを得ました!glew32.libとビジュアルスタジオ2015のGLEW_STATIC定義をリンクするエラーLNK200

1>------ Build started: Project: demo, Configuration: Debug Win32 ------ 
    1>libtiff-2015.lib(tif_win32.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 
    1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library 
    1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 
    1>cocox.lib(CCGLViewImpl-desktop.obj) : error LNK2001: unresolved external symbol ___glewBindFramebuffer 
    1>cocox.lib(CCFrameBuffer.obj) : error LNK2001: unresolved external symbol ___glewBindFramebuffer 
    1>cocox.lib(CCGLViewImpl-desktop.obj) : error LNK2001: unresolved external symbol ___glewBindRenderbuffer 
    1>cocox.lib(CCFrameBuffer.obj) : error LNK2001: unresolved external symbol ___glewBindRenderbuffer 
    1>cocox.lib(CCGLViewImpl-desktop.obj) : error LNK2001: unresolved external symbol ___glewCheckFramebufferStatus 
    1>cocox.lib(CCFrameBuffer.obj) : error LNK2001: unresolved external symbol ___glewCheckFramebufferStatus 
    1>cocox.lib(CCGLViewImpl-desktop.obj) : error LNK2001: unresolved external symbol ___glewDeleteFramebuffers 
    1>cocox.lib(CCFrameBuffer.obj) : error LNK2001: unresolved external symbol ___glewDeleteFramebuffers 
    1>cocox.lib(CCGLViewImpl-desktop.obj) : error LNK2001: unresolved external symbol ___glewDeleteRenderbuffers 
    .................... 
    1>cocox.lib(CCFrameBuffer.obj) : error LNK2001: unresolved external symbol ___glewGenFramebuffers 
    1>cocox.lib(CCGLViewImpl-desktop.obj) : error LNK2001: unresolved external symbol ___glewGenRenderbuffers 
    1>cocox.lib(CCFrameBuffer.obj) : error LNK2001: unresolved external symbol ___glewGenRenderbuffers 
    1>cocox.lib(CCGLViewImpl-desktop.obj) : error LNK2001: unresolved external symbol ___glewGenerateMipmap 
    ........................ 
    1>cocox.lib(ccGLStateCache.obj) : error LNK2001: unresolved external symbol ___glewDisableVertexAttribArray 
    1>cocox.lib(CCCameraBackgroundBrush.obj) : error LNK2001: unresolved external symbol ___glewEnableVertexAttribArray 
    1>cocox.lib(CCMeshCommand.obj) : error LNK2001: unresolved external symbol ___glewEnableVertexAttribArray 
    1>cocox.lib(CCVertexAttribBinding.obj) : error LNK2001: unresolved external symbol ___glewEnableVertexAttribArray 
    ................................ 
    1>cocox.lib(CCRenderer.obj) : error LNK2001: unresolved external symbol ___glewBufferData 
    1>cocox.lib(CCDrawNode.obj) : error LNK2001: unresolved external symbol ___glewBufferData 
    1>cocox.lib(CCTextureAtlas.obj) : error LNK2001: unresolved external symbol ___glewBufferData 
    1>cocox.lib(CCCameraBackgroundBrush.obj) : error LNK2001: unresolved external symbol ___glewBufferData 
    1>cocox.lib(CCVertexIndexBuffer.obj) : error LNK2001: unresolved external symbol ___glewDeleteBuffers 
    1>cocox.lib(CCRenderer.obj) : error LNK2001: unresolved external symbol ___glewDeleteBuffers 
    1>cocox.lib(CCDrawNode.obj) : error LNK2001: unresolved external symbol ___glewDeleteBuffers 
    1>cocox.lib(CCTextureAtlas.obj) : error LNK2001: unresolved external symbol ___glewDeleteBuffers 
    1>cocox.lib(CCCameraBackgroundBrush.obj) : error LNK2001: unresolved external symbol ___glewDeleteBuffers 
    1>cocox.lib(CCVertexIndexBuffer.obj) : error LNK2001: unresolved external symbol ___glewGenBuffers 
    1>cocox.lib(CCRenderer.obj) : error LNK2001: unresolved external symbol ___glewGenBuffers 
    1>cocox.lib(CCDrawNode.obj) : error LNK2001: unresolved external symbol ___glewGenBuffers 
    1>cocox.lib(CCTextureAtlas.obj) : error LNK2001: unresolved external symbol ___glewGenBuffers 
    1>cocox.lib(CCCameraBackgroundBrush.obj) : error LNK2001: unresolved external symbol ___glewGenBuffers 
    1>cocox.lib(CCRenderer.obj) : error LNK2001: unresolved external symbol ___glewMapBuffer 
    1>cocox.lib(CCTextureAtlas.obj) : error LNK2001: unresolved external symbol ___glewMapBuffer 
    ......................... 
    1>cocox.lib(CCGLProgram.obj) : error LNK2001: unresolved external symbol ___glewGetActiveAttrib 
    1>cocox.lib(CCGLProgram.obj) : error LNK2001: unresolved external symbol ___glewGetActiveUniform 
    ..................... 
    1>cocox.lib(CCGLProgram.obj) : error LNK2001: unresolved external symbol ___glewUniformMatrix4fv 
    1>cocox.lib(CCVertexIndexBuffer.obj) : error LNK2001: unresolved external symbol ___glewIsBuffer 
    1>G:\code\cpp\cocoxgame\vs2015\demo\Debug\demo.exe : fatal error LNK1120: 73 unresolved externals 
    ========== Build: 0 succeeded, 1 failed, 5 up-to-date, 0 skipped ========== 
+0

プロジェクトに静的にコンパイルすることができます。 プロジェクトのソースファイルにglew.hとglew.cを追加します。 – Alu

答えて

0

私は間違いを犯しました。この「glew32.lib」はglew32.dllのインポートライブラリです。 glew32.libをglew32s.libに置き換える必要があります。

関連する問題