I am trying to compile the source code provided with the CD in the book “OpenGL game programming” (LaMonthe,Hawkins,Astle). But the compiler can`t make it because of the following errors:
error LNK2001: unresolved external symbol __imp__glLineWidth@4
chapter4.obj : error LNK2001: unresolved external symbol __imp__glPointSize@4
chapter4.obj : error LNK2001: unresolved external symbol __imp__glPolygonMode@8
chapter4.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
chapter4.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
.
.
.
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/chapter4.exe : fatal error LNK1120: 24 unresolved externals
Why is that ? What can I do ?
Also another chapter had source code where there was similar error like this just for the procedure AUXDIBImageLoad.
When I cahnged the version of GLUT from 3.6.3. to 3.7 anither 16 errors appeared.
It seeme that version 3.0 could help but sgi.com doesn`t have the link working. Where could I find other/older versions of GLUT?
I have updated those .lib files in project->settings but nothin changes. What else should I do ? I did not set anything else in compiler. It is just fresh new install.
You have to include the glaux lib into the library list of your project… I always wonder why so many people are complaining about this. The error messages are pretty much self-explaining.