SFML with OpenGL tutorial

closed account (y8h7M4Gy)
Hello.. I recently migrated from SDL to SFML, and I am on the OpenGL tutorial.. everything went fine, but when i compile it, it says

/tmp/ccVts3S5.o: In function `main':
app.cpp:(.text+0x1a7): undefined reference to `gluPerspective'
collect2: ld returned 1 exit status

I tried copying their source code even and still said the same thing, do i need another library or something?

thanks in advance
Just enter the error message (undefined reference to `gluPerspective') into Google. Then you'll know that you need to link glu32.
closed account (y8h7M4Gy)
Do i just put -lglu32 ?

p.s.

im using ubuntu 10.04 64-bit
Yes. Well, probably.
closed account (y8h7M4Gy)
hmm.. i tried that and it doesnt work, and on the sfml tut it says that i only have to include sfml-window
closed account (y8h7M4Gy)
ok got it, needed to do -lGLU.. i tried it in small letters but it didnt work for some reason.. blha
Topic archived. No new replies allowed.