[KPhotoAlbum] Strange Bug while Compiling KPA
Andreas Neustifter
andreas.neustifter at gmail.com
Sun May 22 13:00:04 BST 2011
Hi all!
When compiling the latest GIT my compiler complains about swap not being in std:
>$ cmake -DCMAKE_BUILD_TYPE=Release
>$ make
Scanning dependencies of target Utilities_automoc
[ 0%] Built target Utilities_automoc
Scanning dependencies of target Utilities
[ 1%] Building CXX object CMakeFiles/Utilities.dir/Utilities_automoc.o
[ 1%] Building CXX object CMakeFiles/Utilities.dir/Utilities/ShowBusyCursor.o
[ 2%] Building CXX object CMakeFiles/Utilities.dir/Utilities/List.o
/home/astifter/Development/kphotoalbum/Utilities/List.cpp: In function
‘QList<T> Utilities::shuffleList(const QList<T>&)’:
/home/astifter/Development/kphotoalbum/Utilities/List.cpp:85: error:
‘swap’ is not a member of ‘std’
make[2]: *** [CMakeFiles/Utilities.dir/Utilities/List.o] Error 1
make[1]: *** [CMakeFiles/Utilities.dir/all] Error 2
make: *** [all] Error 2
<algorithm> is included in List.cpp, has anyone ideas (or the same problem)?
Andi
More information about the Kphotoalbum
mailing list