closes my app although i believe this has no reson of happening, if i just do not call this everything works ok.
for the sake of understanding open gl i would like to ask if anyone knew of a reason this function would be causing this
before quitting the app outputs that i havent called glutInit before setoptions,
but below is my code
int width = 500;
int height = 500;
unsigned int displayMode = GLUT_DOUBLE | GLUT_ALPHA | GLUT_DEPTH | GLUT_STENCIL;
displayMode = defaults(displayMode, width, height);
printf("Your OpenGL version is %i, %i. You must have at least OpenGL 3.3 to run this tutorial.\n",
I'm trying to install freeglut on my pc and my testApp gets linkers errors which even after severel tries to fix i have not been able to fix.
.lib and header are inside my VS directory/VC/lib and /VC/include, the dll is inside the windows directory and still i get
1>App.obj : error LNK2019: unresolved external symbol __imp__glutLeaveMainLoop@0 referenced in function "public: void __thiscall App::Keyboard(unsigned int,int,int)" (?Keyboard@App@@QAEXIHH@Z)
1>Main.obj : error LNK2019: unresolved external symbol __imp__glutSetOption@8 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glutInitContextProfile@4 referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol __imp__glutInitContextVersion@8 referenced in function _main
the other glut fucntions used in normal glut (without the free) do NOT throw any errors