3
« on: October 28, 2012, 08:28:37 pm »
Today I begun working through the tutorials. Everything was working fine and running smooth until I got to the first OpenGl Tutorial. I read the tutorial, wrote out the code but when I ran the program, I get the error of not able to start program ---- The System cannot find the file specified.
So i went through the code seeing if i missed anything. Couldn't find anything wrong. Tried again. same result. So I thought to myself maybe if i copy the code that is provided at the end of the tutorial - maybe theres something different. After a copy - paste operation, same result.
Im confused. I set up each project I start the same way, configuring the setting for SFML. Each other tutorial worked fine, is there an additional library to include for OpenGL. I believe the tutorial said all I need is #include <SFML/Window.hpp>
Heres the Error Code lines :
1>------ Build started: Project: SFMLTut2OpenGl, Configuration: Debug Win32 ------
1>main.obj : error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glVertex3f@12 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glBegin@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glRotatef@16 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glTranslatef@12 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glDepthMask@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __imp__glClearDepth@8 referenced in function _main
1>C:\Users\HomePC2\Documents\Visual Studio 2010\Projects\SFMLTut2OpenGl\Debug\SFMLTut2OpenGl.exe : fatal error LNK1120: 14 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========