PDA

View Full Version : setup of opengl



crazyhombre
03-07-2011, 01:29 PM
Hi all!

I just got the book, OpenGL Superbible (4th Edition), and downloaded tghe complete source code from this website. Then, using Visual C++ 2005, i created a project from existing code in the following directory :

C:\SB-AllSource\examples\src\chapt01\block

After adding libc.lib as an ignored library, i build the program. This is the error i am getting:


1>------ Build started: Project: block, Configuration: Debug Win32 ------
1>Linking...
1>Block.obj : error LNK2019: unresolved external symbol "void __cdecl m3dMakePlanarShadowMatrix(float * const,float const * const,float const * const)" (?m3dMakePlanarShadowMatrix@@YAXQAMQBM1@Z) referenced in function "void __cdecl RenderScene(void)" (?RenderScene@@YAXXZ)
1>Block.obj : error LNK2019: unresolved external symbol "void __cdecl m3dGetPlaneEquation(float * const,float const * const,float const * const,float const * const)" (?m3dGetPlaneEquation@@YAXQAMQBM11@Z) referenced in function "void __cdecl RenderScene(void)" (?RenderScene@@YAXXZ)
1>Block.obj : error LNK2019: unresolved external symbol "signed char * __cdecl gltLoadTGA(char const *,int *,int *,int *,unsigned int *)" (?gltLoadTGA@@YAPACPBDPAH11PAI@Z) referenced in function "void __cdecl SetupRC(void)" (?SetupRC@@YAXXZ)
1>freeglut_static.lib(freeglut_display.obj) : error LNK2019: unresolved external symbol __iob referenced in function _glutSwapBuffers
1>freeglut_static.lib(freeglut_main.obj) : error LNK2001: unresolved external symbol __iob
1>Debug\block.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\SB-AllSource\examples\src\chapt01\block\Debug\BuildLo g.htm"
1>block - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


If anyone could tell me what i am doing wrong, that would be great.

Thanks!