If I try to #include <SFML/Audio.hpp> in my program, I get the following compilation errors in Ubuntu 11.04 (SFML 1.6):
g++ -c "/home/simon/dev/slade/trunk/src/Archive.cpp" -O3 -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -DNO_AUDIERE -DBOOL=int -DTRUE=1 -DFALSE=0 -D_7ZIP_ST -D__WX__ -DNDEBUG -o ./Release/src_Archive.o -I.
In file included from /usr/local/include/SFML/Audio/SoundStream.hpp:31:0,
from /usr/local/include/SFML/Audio/Music.hpp:31,
from /usr/local/include/SFML/Audio.hpp:34,
from /home/simon/dev/slade/trunk/src/AudioEntryPanel.h:6,
from /home/simon/dev/slade/trunk/src/ArchivePanel.cpp:46:
/usr/local/include/SFML/Audio/Sound.hpp:52:10: error: expected identifier before ‘int’
/usr/local/include/SFML/Audio/Sound.hpp:53:5: error: expected unqualified-id before ‘{’ token
In file included from /usr/local/include/SFML/Audio/Music.hpp:31:0,
from /usr/local/include/SFML/Audio.hpp:34,
from /home/simon/dev/slade/trunk/src/AudioEntryPanel.h:6,
from /home/simon/dev/slade/trunk/src/ArchivePanel.cpp:46:
/usr/local/include/SFML/Audio/SoundStream.hpp:48:18: error: expected unqualified-id before ‘int’
/usr/local/include/SFML/Audio/SoundStream.hpp:48:18: error: expected ‘;’ before ‘int’
/usr/local/include/SFML/Audio/SoundStream.hpp:48:18: error: declaration does not declare anything
/usr/local/include/SFML/Audio/SoundStream.hpp:49:18: error: no members matching ‘sf::Sound::Stopped’ in ‘class sf::Sound’
/usr/local/include/SFML/Audio/SoundStream.hpp:50:18: error: no members matching ‘sf::Sound::Paused’ in ‘class sf::Sound’
/usr/local/include/SFML/Audio/SoundStream.hpp:51:18: error: no members matching ‘sf::Sound::Playing’ in ‘class sf::Sound’
g++ -c "/home/simon/dev/slade/trunk/src/ArchiveEntry.cpp" -O3 -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -DNO_AUDIERE -DBOOL=int -DTRUE=1 -DFALSE=0 -D_7ZIP_ST -D__WX__ -DNDEBUG -o ./Release/src_ArchiveEntry.o -I.
make[1]: *** [Release/src_ArchivePanel.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/simon/dev/slade/trunk'
make: *** [All] Error 2
Any idea what could be wrong here? I've tried both the sfml-dev package on the repository and compiling sfml manually but both do the same thing.