I have an opengl program that does not work because I am getting unresolved external symbol errors. Here are the errors:
[errors]
--------------------Configuration: opengl - Win32 Debug--------------------
Compiling...
main.cpp
Linking...
main.obj : error LNK2001: unresolved external symbol _gluPerspective@32
main.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
main.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
main.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
main.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
main.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
main.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
main.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
main.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12
main.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
main.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
main.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16
main.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12
main.obj : error LNK2001: unresolved external symbol __imp__glClear@4
Debug/opengl.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
opengl.exe - 15 error(s), 0 warning(s)
[/code]
The headers I included are:
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glaux.h>
I am pretty sure I included all the correct headers, and yes they are all in the correct location (in the gl folder in my include directory).
I am honestly not sure why I am getting all of these errors, is there some project setting I must change in visual studio before i continue?
Thanks if you can help me!
Catch you later.