#include <GL/glut.h>
GLuint listName = 1;void init (void)
{
glNewList (listName, GL_COMPILE);
        glColor3f(1.0, 0.0, 0.0);//current red color
        glBegin (GL_TRIANGLES);
            glVertex2f (0.0, 0.0);
            glVertex2f (1.0, 0.0);
            glVertex2f (0.0, 1.0);
        glEnd ();
        glTranslatef (1.5, 0.0, 0.0);//move positon
    glEndList ();
    glShadeModel (GL_FLAT);
}void drawLine (void)
{
glLineWidth(4.0);
    glBegin (GL_LINES);
        glVertex2f (0.0, 0.5);
        glVertex2f (15.0, 0.5);
    glEnd ();
}void display(void)
{
    GLuint i;
    glClear (GL_COLOR_BUFFER_BIT);
    glColor3f(0.0, 1.0, 0.0);//current green color
    for (i = 0; i < 10; i++)//draw 10 triangles
        glCallList (listName);
    drawLine ();//is this line green? NO!  It's red. 
    glFlush ();
}void reshape(GLsizei w, GLsizei h)
{
    glViewport(0, 0, w, h);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    if (w <= h) 
        gluOrtho2D (0.0, 2.0, -0.5 * (GLfloat) h/(GLfloat) w, 
              1.5 * (GLfloat) h/(GLfloat) w);
    else 
        gluOrtho2D (0.0, 2.0 * (GLfloat) w/(GLfloat) h, -0.5,
              1.5); 
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();
}
int main(int argc, char** argv)
{
   glutInit(&argc, argv);
   glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
   glutInitWindowSize (650, 50); 
   glutInitWindowPosition (100, 100);
   glutCreateWindow ("list");
   init ();
   glutDisplayFunc(display); 
   glutReshapeFunc(reshape);
   glutMainLoop();
   return 0;
}
上面是我的程序,《opengl三维图形系统开发与实用技术--基础编程篇》的附带光盘的一段程序,我的错误是************************************************************************
Linking...
list.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
list.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Debug/list.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.list.exe - 3 error(s), 0 warning(s)
***************************************************************************
让我想不明白的是,我明明是把glut32.dll,glut.dll放到我的system32文件夹下,我也把glut.h,glut32.lib放入指定的位置,但就是不行,不知道该怎么办,我都快哭了。