VS2013新增opengl lib等檔案失敗的問題?

時間 2021-06-04 05:13:42

1樓:

在保證 GLEW 和 GLFW 版本正確的前提下 (x86 或 x86_64)

1. 關於 GLEW:

建議自己仔細閱讀這個頁面, GLEW: The OpenGL Extension Wrangler Library, 多半是你沒有引用對 shared library or static library.

1.1 Static library用這個開頭.

#define GLEW_STATIC

#include

"glew.h"

同時配置 Visual Studio 的時候 Project -> Configuration -> C/C++ -> Code Generation -> Runtime Library -> Multi-threaded Debug (/MTd)

而且引用glew32sd.lib 而不是 glew32d.lib

1.2 Dynamic library

#include

"glew.h"

同時配置 Visual Studio 的時候 Project -> Configuration -> C/C++ -> Code Generation -> Runtime Library -> Multi-threaded Debug DLL (/MDd)

而且引用glew32d.lib

2. 關於 GLFW:

建議檢視我的回答:

c++ - Visual Studio 11 GLFW external symbol error

怎麼完全解除安裝VS2013

剛解除安裝成功了,李剛的回答有人說不懂,我發個具體點的1 把安裝包載入到虛擬光碟機中,或者解壓 2 用管理員開啟cmd控制台,cd 進入到安裝包根目錄3 控制台中執行命令 vs ultimate.exe uninstall force 坐等解除安裝完成 旗艦版是vs ultimate.exe,專業版...

VS 2015 update 1比VS 2013 update 5新增了哪些C 11 14特性?

573xmcgcg 這裡有詳盡的C 新特性的實現進度 C 11 14 17 Features In VS 2015 RTM 部分實現 完全實現 全部為C 11特性 N3053 Rvalue references N2756 Non static data member initializers N2...

vs2013 有必要 使用 visual assist或resharper嗎?

Kuzzh 寫 C 沒太大必要用 Resharper,如果你的電腦配置很高的不在乎 Resharper 拖慢的那點速度還是可以用的。 maxint c 是沒多大必要,vs做的挺好。不過一些外掛程式靜態分析還是可以的,就是裝了感覺vs速度變慢。c 的話,va還是值得裝的,基本離不開。估計c 的分析太難...