Setting up OpenGL
I'm having difficulty compiling/running the tutorial sources and I'm assuming it's because I haven't linked the project correctly. Is there a walkthrough for setting up OpenGL/GLUT with Visual C++ 2005 Express so I can see where I went wrong? Here's my errors:
------ Build started: Project: lesson08, Configuration: Debug Win32 ------
Linking...
Lesson8.obj : error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PAD@Z)
Lesson8.obj : error LNK2019: unresolved external symbol _gluBuild2DMipmaps@28 referenced in function "int __cdecl LoadGLTextures(void)" (?LoadGLTextures@@YAHXZ)
Lesson8.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
C:\Documents and Settings\Jonathan\Desktop\lesson08\Debug\lesson08.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Jonathan\Desktop\lesson08\Debug\BuildLog.htm"
lesson08 - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Add these libraries to linker settings: glaux.lib, glu32.lib. The glaux library is kind of old and deprecated though, it may not be available on your system. If it's not available, write a function to replace LoadBMP, or use DevIL, SDL_image, etc.
EDIT: See this post about LoadBMP
[Edited by - deathkrush on August 29, 2007 12:51:22 AM]
EDIT: See this post about LoadBMP
[Edited by - deathkrush on August 29, 2007 12:51:22 AM]
deathkrushPS3/Xbox360 Graphics Programmer, Mass Media.Completed Projects: Stuntman Ignition (PS3), Saints Row 2 (PS3), Darksiders(PS3, 360)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement