2010-08-07 2 views
0

나는 그물 주위에 떠있는 모든 솔루션을 시도했지만 찾을 수 있습니다. 그러나 MSVS C++ 2010 express edition을 사용하여 Windows 7에서 간단한 nehe 튜토리얼을 컴파일해도 성공하지 못했습니다.MSVS에서 OpenGL 프로그래밍 C++ express 2010 in Windows 7

누구든지 진행 방법에 대한 단서를 제공 할 수 있다면 감사 할 것입니다.

감사합니다.

편집 :

opengl32.lib glu32.lib 
: 오류
------ Build started: Project: Polyons, Configuration: Debug Win32 ------ 
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Users\Ashish\Downloads\GameloftOpenGL\02Polygons\.\Debug\Polyons.exe) does not match the Linker's OutputFile property value (C:\Users\Ashish\Downloads\GameloftOpenGL\02Polygons\Debug\test.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(Polyons) does not match the Linker's OutputFile property value (test). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 
Polygons.obj : error LNK2019: unresolved external symbol _gluPerspective referenced in function "void __cdecl ReSizeGLScene(int,int)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glLoadIdentity referenced in function "void __cdecl ReSizeGLScene(int,int)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glMatrixMode referenced in function "void __cdecl ReSizeGLScene(int,int)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glViewport referenced in function "void __cdecl ReSizeGLScene(int,int)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glHint referenced in function "int __cdecl InitGL(void)" ([email protected]@YAHXZ) 
Polygons.obj : error LNK2019: unresolved external symbol _glDepthFunc referenced in function "int __cdecl InitGL(void)" ([email protected]@YAHXZ) 
Polygons.obj : error LNK2019: unresolved external symbol _glEnable referenced in function "int __cdecl InitGL(void)" ([email protected]@YAHXZ) 
Polygons.obj : error LNK2019: unresolved external symbol _glClearDepth referenced in function "int __cdecl InitGL(void)" ([email protected]@YAHXZ) 
Polygons.obj : error LNK2019: unresolved external symbol _glClearColor referenced in function "int __cdecl InitGL(void)" ([email protected]@YAHXZ) 
Polygons.obj : error LNK2019: unresolved external symbol _glShadeModel referenced in function "int __cdecl InitGL(void)" ([email protected]@YAHXZ) 
Polygons.obj : error LNK2019: unresolved external symbol _glEnd referenced in function "void __cdecl DrawCube(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glVertex3f referenced in function "void __cdecl DrawCube(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glColor3f referenced in function "void __cdecl DrawCube(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glBegin referenced in function "void __cdecl DrawCube(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)" ([email protected]@[email protected]) 
Polygons.obj : error LNK2019: unresolved external symbol _glClear referenced in function "int __cdecl DrawGLScene(void)" ([email protected]@YAHXZ) 
.\Debug/test.exe : fatal error LNK1120: 15 unresolved externals 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 
+0

자세한 정보가 도움이 될 것입니다. 컴파일러에서 어떤 오류가 발생합니까? – Rushyo

답변

1

하기 -> 설정 -> 링커 -> 입력 -> 추가 라이브러리 프로젝트 -하는

이동 적절한 라이브러리와 링크 및 추가해야