/* attempt to deal with prototype, bootstrap, jquery conflicts */ /* for dropdown menus */

Jump to content

Image of the Day

Today's #ScreenshotSaturday features Face Your Fears from Turtle Roc ... #virtualrealityshop #mobilevr #vrshop https://t.co/3qhSNAVNOZ
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Opengl - linker errors

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Shawn619   Members   

342
Like
0Likes
Like

Posted 23 March 2012 - 04:54 AM

While attempting to incorporate shaders for PPL, i think i accidently removed a few includes and now my program wont run even with commenting out all the glsl code and reverting back to my original program.
The errors:
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutSwapBuffers@0"]__imp__glutSwapBuffers@0[/email] referenced in function "void __cdecl drawScene(void)" ([email="?drawScene@@YAXXZ"]?drawScene@@YAXXZ[/email])
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutTimerFunc@12"]__imp__glutTimerFunc@12[/email] referenced in function "void __cdecl update(int)" ([email="?update@@YAXH@Z"]?update@@YAXH@Z[/email])
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutPostRedisplay@0"]__imp__glutPostRedisplay@0[/email] referenced in function "void __cdecl update(int)" ([email="?update@@YAXH@Z"]?update@@YAXH@Z[/email])
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutMainLoop@0"]__imp__glutMainLoop@0[/email] referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutReshapeFunc@4"]__imp__glutReshapeFunc@4[/email] referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutKeyboardFunc@4"]__imp__glutKeyboardFunc@4[/email] referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutDisplayFunc@4"]__imp__glutDisplayFunc@4[/email] referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutCreateWindow@4"]__imp__glutCreateWindow@4[/email] referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutInitWindowSize@8"]__imp__glutInitWindowSize@8[/email] referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutInitDisplayMode@4"]__imp__glutInitDisplayMode@4[/email] referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol [email="__imp__glutInit@8"]__imp__glutInit@8[/email] referenced in function _main
1>C:\Users\Shawn\Documents\New folder\First Project - visual\Light\Debug\Light.exe : fatal error LNK1120: 11 unresolved externals
They appear to be glut errors, but beyond that im not sure.
I tried to backtrack and figure what i did wrong. So i'll name off the things i currently have in my program and whether or not i changed them while trying to get my shader to work.
Includes: (I did remove 1 or 2 that may have caused these errors)
C:\Users\Shawn\Documents\New folder\First Project - visual\Light\Light\glew\include
C:\Users\Shawn\Documents\New folder\First Project - visual\Light\Light\cwc\include
C:\Users\Shawn\Documents\New folder\First Project - visual\Light\Light\freeglut\include
C:\Program Files %28x86%29\Microsoft Visual Studio 10.0\VC\include
Linkers:(Never touched)
SOIL.lib glu32.lib opengl32.lib
And the includes in my program:
#include <stdlib.h>
#include <gl/glut.h>
#include <SOIL.h>
#include <string>
#include <iostream>
I would greatly appreciate help!

#2 pilarsor   Members   

130
Like
2Likes
Like

Posted 23 March 2012 - 04:20 PM

Seems, that you miss linking against glut32.lib.

#3 Shawn619   Members   

342
Like
0Likes
Like

Posted 24 March 2012 - 01:10 AM

Solved! thanks!




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.