Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Glu issues.  (Read 3262 times)

0 Members and 1 Guest are viewing this topic.

scyth3s

  • Newbie
  • *
  • Posts: 20
    • View Profile
Glu issues.
« 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?
"My church is not full of..."

DoctorJ

  • Newbie
  • *
  • Posts: 21
    • View Profile
Glu issues.
« Reply #1 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.