I too am having problems with this tutorial on amd64/linux
I already had the latest versions of the 3 files that you suggest downloading.
I tried your suggestions in various configurations, one of which was...
g++ -c window-opengl.cpp -lsfml-graphics -lsfml-window -lsfml-system -l/usr/lib/GL
g++ -o window-opengl window-opengl.o -L/usr/lib -lGLU
I'm not sure if that's what you meant but none of them have worked.
The first line produces the .o file
The second line produces this
window-opengl.o: In function `main':
window-opengl.cpp:(.text+0x55): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
window-opengl.cpp:(.text+0x79): undefined reference to `sf::Window::Window(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::WindowSettings const&)'
window-opengl.cpp:(.text+0xea): undefined reference to `sf::Clock::Clock()'
window-opengl.cpp:(.text+0x114): undefined reference to `sf::Window::~Window()'
window-opengl.cpp:(.text+0x1f5): undefined reference to `sf::Window::Close()'
window-opengl.cpp:(.text+0x213): undefined reference to `sf::Window::Close()'
window-opengl.cpp:(.text+0x244): undefined reference to `sf::Window::GetEvent(sf::Event&)'
window-opengl.cpp:(.text+0x259): undefined reference to `sf::Window::SetActive(bool) const'
window-opengl.cpp:(.text+0x28e): undefined reference to `sf::Clock::GetElapsedTime() const'
window-opengl.cpp:(.text+0x2b6): undefined reference to `sf::Clock::GetElapsedTime() const'
window-opengl.cpp:(.text+0x2de): undefined reference to `sf::Clock::GetElapsedTime() const'
window-opengl.cpp:(.text+0x5d0): undefined reference to `sf::Window::Display()'
window-opengl.cpp:(.text+0x5dc): undefined reference to `sf::Window::IsOpened() const'
window-opengl.cpp:(.text+0x5f5): undefined reference to `sf::Window::~Window()'
window-opengl.cpp:(.text+0x62b): undefined reference to `sf::Window::~Window()'
I tried commenting out the gluPerspective line
and it all compiled nicely with
g++ -o window-opengl window-opengl.cpp -lsfml-graphics -lsfml-window -lsfml-system
and ran as a window so it does seem to be this bit that is doing the "damage"
==============================================
Your synaptic suggestion is excellent 'cos I've never known how to look at what gets put where. Synaptic shows that my files are here...
libgl1-mesa-dev contains...
================
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libgl1-mesa-dev
/usr/share/doc/libgl1-mesa-dev/copyright
/usr/share/doc/libgl1-mesa-dev/changelog.Debian.gz
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/gl.pc
/usr/lib/libGL.so
libglu1-mesa-dev contains...
=================
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libglu1-mesa-dev
/usr/share/doc/libglu1-mesa-dev/copyright
/usr/share/doc/libglu1-mesa-dev/changelog.Debian.gz
/usr/include
/usr/include/GL
/usr/include/GL/glu.h
/usr/include/GL/glu_mangle.h
/usr/lib
/usr/lib/libGLU.a
/usr/lib/libGLU.so
and libopenal-dev contains...
=================
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libopenal-dev
/usr/share/doc/libopenal-dev/README.Debian
/usr/share/doc/libopenal-dev/copyright
/usr/share/doc/libopenal-dev/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/openal-config.1.gz
/usr/include
/usr/include/AL
/usr/include/AL/al.h
/usr/include/AL/alc.h
/usr/include/AL/alext.h
/usr/lib
/usr/lib/libopenal.a
/usr/lib/pkgconfig
/usr/lib/pkgconfig/openal.pc
/usr/bin
/usr/bin/openal-config
/usr/lib/libopenal.so
Could someone please advise
a) whether I've got all the files this tutorial needs and
b) what my compile line should be
To give some idea of the state of my system
I was able to compile and run this example
http://www.sfml-dev.org/tutorials/1.4/graphics-fonts.phpwith
g++ -o graphics-fonts graphics-fonts.cpp -lsfml-graphics -lsfml-window -lsfml-system
Hope this helps
Thx in anticipation