이것은 좋은 솔루션도 찾을 수없는 것으로 보입니다. 제가 읽은 대부분의 포럼이나 질문은 무엇이 잘못되었는지 알려주지 만 잘 해결하는 방법을 설명하지는 않습니다. 나는 Code :: Blocks로 GLEW를 설정하려고 시도했지만, 약 2 주 동안 작동하지 못했기 때문에 시도하지는 않았다. 나는 다음과 같은 링커 오류를 타격 계속 :코드 :: 블록과 함께 GLEW를 사용하는 방법
내 링커가 설치 얼마나obj\Debug\src\Graphics.o:D:\cold-fusion-engine\ColdFusion\src\Graphics.cpp|57|undefined reference to `_imp____glewGenBuffers'|
obj\Debug\src\Graphics.o:D:\cold-fusion-engine\ColdFusion\src\Graphics.cpp|59|undefined reference to `_imp____glewBindBuffer'|
obj\Debug\src\Graphics.o:D:\cold-fusion-engine\ColdFusion\src\Graphics.cpp|61|undefined reference to `_imp____glewBufferData'|
obj\Debug\src\Graphics.o:D:\cold-fusion-engine\ColdFusion\src\Graphics.cpp|63|undefined reference to `_imp____glewEnableVertexAttribArray'|
obj\Debug\src\Graphics.o:D:\cold-fusion-engine\ColdFusion\src\Graphics.cpp|64|undefined reference to `_imp____glewBindBuffer'|
obj\Debug\src\Graphics.o:D:\cold-fusion-engine\ColdFusion\src\Graphics.cpp|72|undefined reference to `_imp____glewVertexAttribPointer'|
obj\Debug\src\Graphics.o:D:\cold-fusion-engine\ColdFusion\src\Graphics.cpp|77|undefined reference to `_imp____glewDisableVertexAttribArray'|
||=== Build finished: 7 errors, 0 warnings ===|
: 그 잘못 될 수도 읽은
한 가지 GLEW가 대신 glew32.a 컴파일 할 필요가 있다는 것입니다 glew32.lib하지만 Cygwin에서 작동하도록 Makefile을 얻을 수 없습니다. 나는 또한 이것이 사람들이 공통적으로 겪고있는 문제의 일부인 것처럼 보였다. 나는 그것을 묻는 것이 많지만 누군가 MINGw을 위해 GLEW를 컴파일하고 업로드 할 수 있는지 또는 자세한 내용을 어떻게 수행 할 것인지 단계별로 알려줄 수 있습니까? 내가해야 할 것보다 더 많은 문제를 안고 있고 OpenGL 4를 배우고 OpenGL 1.2를 고수하는 것을 포기할 때까지 나를 몰아 가고 있습니다.
@ moskito-x 예. – cgasser
그리고 msys를 통해 mingw를 사용합니다. –