PMG
https://forum.pmg.org.ru/

нужна помощь
https://forum.pmg.org.ru/viewtopic.php?f=1&t=5031
Страница 1 из 1

Автор:  Jawello [ 10 ноя 2007 05:52 ]
Заголовок сообщения:  нужна помощь

Решил начать изучать OpenGl.Знания програмирования достаточно невысокие(можно сказать так се),особенно касаясь програмирования под винду,работы с окнами, и т.д. ...работаю в Visual Studio 8. Прошел первый урок но ни как не могу его откомпилить.Загрузил файл с сайта (после исправления пару ошибок которые он мне выдал,о том что нужно чар переобразовать в LPCWSTR) он мне выдал что то ужасное и непонятное(Текст ошибок будет в конце).Помогите разобраться.И еще я не очень понял как подключать сами библеотеки.Заранее спасибо.

1>nehe-ogl01.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glShadeModel@4 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glDepthFunc@4 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glClearDepth@8 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function "void __cdecl InitGL(int,int)" (?InitGL@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "void __cdecl DrawGLScene(void)" (?DrawGLScene@@YAXXZ)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__wglDeleteContext@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__wglMakeCurrent@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>nehe-ogl01.obj : error LNK2019: unresolved external symbol __imp__wglCreateContext@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)

Автор:  _dex_ [ 11 ноя 2007 12:02 ]
Заголовок сообщения: 

#pragma comment (lib,"opengl32.lib")
#pragma comment (lib,"glu32.lib")

Автор:  Jawello [ 12 ноя 2007 02:54 ]
Заголовок сообщения: 

спасибо заработала...

Страница 1 из 1 Часовой пояс: UTC + 3 часа [ Летнее время ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/