SFML community forums

Help => Window => Topic started by: scyth3s on February 22, 2011, 05:08:44 am

Title: Glu issues.
Post by: scyth3s on February 22, 2011, 05:08:44 am
I'm trying to experiment in OpenGL with SFML, but I can't seem to get ANY glu functions to work.

I have the following code:

Code: [Select]
void display()
{
    glClear(GL_COLOR_BUFFER_BIT);

    glMatrixMode(GL_MODELVIEW);

    glColor3f(0,1,0);//green

    glLineWidth(10);

    gluLookAt(0,0,5,     0,0,0,     0,1,0);
    glBegin(GL_LINES);
        glVertex3f(0,0,0);
        glVertex3f(0,0.5,0);
    glEnd();
}


The line with gluLookAt gives a compiler error every time, yet all the other openGL calls work flawlessly. I'm operating on Windows, and I have included the SFML/Window.hpp. Any hints?
Title: Glu issues.
Post by: DoctorJ on February 22, 2011, 06:39:34 am
You probably just need to add a linker setting: eg. glu32 for windows or GLU for linux.