我一直在尝试让 freeGlut/openGL 和 glew 工作到 Visual Studio 2012,但似乎无法让它工作。
这些是我的错误: http: //pastebin.com/8YyVvxDb
我已将标头、DLL、库和所有内容移至所有可能的位置,将内容添加到链接器等中,但它仍然无法正常工作。如果有人可以通过远程帮助我,我确实有 teamviewer/skype
这是上面链接的日志。订单保留在 OP 的链接中。
Error 14 error LNK1120: 13 unresolved externals C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Debug\Testing_glut.exe Testing_glut
Error 9 error LNK2019: unresolved external symbol __imp____glutCreateWindowWithExit@8 referenced in function _glutCreateWindow_ATEXIT_HACK@4 C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 8 error LNK2019: unresolved external symbol __imp____glutInitWithExit@12 referenced in function _glutInit_ATEXIT_HACK@8 C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 7 error LNK2019: unresolved external symbol __imp__glutDisplayFunc@4 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 12 error LNK2019: unresolved external symbol __imp__glutInitContextFlags@4 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 13 error LNK2019: unresolved external symbol __imp__glutInitContextProfile@4 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 11 error LNK2019: unresolved external symbol __imp__glutInitContextVersion@8 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 2 error LNK2019: unresolved external symbol __imp__glutInitDisplayMode@4 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 1 error LNK2019: unresolved external symbol __imp__glutInitWindowSize@8 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 3 error LNK2019: unresolved external symbol __imp__glutMainLoop@0 referenced in function _main C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 4 error LNK2019: unresolved external symbol __imp__glutPostRedisplay@0 referenced in function _RenderFunction C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 6 error LNK2019: unresolved external symbol __imp__glutReshapeFunc@4 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 10 error LNK2019: unresolved external symbol __imp__glutSetOption@8 referenced in function _InitWindow C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
Error 5 error LNK2019: unresolved external symbol __imp__glutSwapBuffers@0 referenced in function _RenderFunction C:\Users\Nanashi\documents\visual studio 2012\Projects\Testing_glut\Testing_glut\main.obj Testing_glut
我找到了一个名为“dependencywalker”的程序并用它来查找可能的错误。这是它的报告:
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
它说它找不到模块“GPSV.DLL”和“IESHIMS.DLL”..知道我做错了什么吗?