OpenGL error LNK2001: unresolved external symbol
#include <windows.h>
void myDisplay(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glRectf(-0.5f, -0.5f, 0.5f, 0.5f);
glFlush();
}
int main(int argc, char *argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE);
glutInitWindowPosition(100, 100);
glutInitWindowSize(400, 400);
glutCreateWindow("第一个OpenGL程序");
glutDisplayFunc(&myDisplay);
glutMainLoop();
return 0;
}
--------------------Configuration: 2 - Win32 Debug--------------------
Linking...
OpenGL.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
OpenGL.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Debug/2.exe : fatal error LNK1120: 2 unresolved externals
执行 link.exe 时出错
这是我第一次学习OpenGL,请大侠帮忙纠错
相关推荐
VC_6中配置OpenGL开发环境
例如,当编译时出现`libcmtd.lib(crt0.obj):error LNK2001: unresolved external symbol _main`错误时,这通常是由于Windows子系统设置不当导致的
OpenGL程序用的库文件.dll .h .lib文件
有具体的help说明,并有vs2005/vs2008/vs2010添加.lib文件的方法以及vc2005出错解决方法error LNK2019: unresolved external symbol
JEP30-PX100A PartModel Product Guidelines for Electronic-Device Substrates and Assemblies – XML Requ
JEP30-PX100A PartModel Product Guidelines for Electronic-Device Substrates and Assemblies – XML Requirements
基于Matlab的自动睡眠粒状结构检测算法,从脑电信号中进行。.zip
1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
JEP375 2.5D_3D Silicon thinned wafers with Through Silicon Vias (TSV’s) and Backside Redistribution
JEP375 2.5D_3D Silicon thinned wafers with Through Silicon Vias (TSV’s) and Backside Redistribution Layer (RDL).pdf


图象工具使用
