저에게 제공되는 이전 C++ 프로젝트에 대한 해결책이 있습니다. 나는 Visual Studio에서 솔루션을 열고 구축 할 때, 나는 오류가 발생합니다 :Visual Studio로 건물 오류가 발생했습니다.
1>------ Build started: Project: Test Proj, Configuration: Release Win32 ------
1>Build started 9/19/2011 8:28:56 PM.
1>InitializeBuildStatus:
1> Touching "Release\Test Proj.unsuccessfulbuild".
1>ClCompile:
1> example1.cpp
1>c:\users\mycomp\downloads\stp\testp\code\Angel.h(38): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
1> InitShader.cpp
1>c:\users\mycomp\downloads\stp\testp\code\Angel.h(38): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.85
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
내가 glew32d.lib을 포함하는 내 프로젝트의 입력 링커 설정을 변경해야했다. 그게 수정, 그리고 그것을 컴파일하고 제대로 실행됩니다.
그러나, 나는 example1.cpp을 (심지어 단지 코멘트를 추가하여), 나는 더 이상 그것을 구축 할 수 그리고 난이 오류 얻을 변경할 때
1>------ Build started: Project: Test Proj, Configuration: Release Win32 ------
1>Build started 9/19/2011 8:25:29 PM.
1>InitializeBuildStatus:
1> Creating "Release\Test Proj.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> example1.cpp
1>c:\users\mycomp\downloads\stp\testp\code\Angel.h(38): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.67
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
glew32d은 아직도 내가 '그렇게 연결 중입니다 어디에 오류가 발생하는지 그리고 왜 빌드 할 수 없는지 확실하지 않습니다.
하지만 링크 설정을 변경 한 후 빌드 오류가 발생하는 이유는 무엇입니까? 컴파일 된 모든 것이 .exe가해야하는 방식대로 실행되었습니다. 답장을 보내 주시면, 지금 당장 말씀하신 내용을 살펴 보겠습니다. – y3di
ok 그래서을 으로 변경하고 glew.h 파일을 인터넷에 저장합니다. 파일을 찾지 못하면 왜 이전에 구축했는지 아직도 이해할 수 없습니다. –
y3di