Hi,
on Ubuntu 12.10, I obtain the following error when trying to compile the most recent cvs panda code using makepanda:
In file included from panda/src/movies/p3movies_composite1.cxx:16:0:
panda/src/movies/wavAudioCursor.cxx: In member function ‘virtual void WavAudioCursor::seek(double)’:
panda/src/movies/wavAudioCursor.cxx:301:75: error: no matching function for call to ‘min(double, size_t&)’
panda/src/movies/wavAudioCursor.cxx:301:75: note: candidates are:
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
from /usr/include/c++/4.7/ios:41,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iostream:40,
from built/include/dtoolbase_cc.h:54,
from built/include/dtoolbase.h:422,
from built/include/pandabase.h:22,
from panda/src/movies/config_movies.h:18,
from panda/src/movies/config_movies.cxx:15,
from panda/src/movies/p3movies_composite1.cxx:1:
/usr/include/c++/4.7/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/usr/include/c++/4.7/bits/stl_algobase.h:187:5: note: template argument deduction/substitution failed:
In file included from panda/src/movies/p3movies_composite1.cxx:16:0:
panda/src/movies/wavAudioCursor.cxx:301:75: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘size_t {aka long unsigned int}’)
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
from /usr/include/c++/4.7/ios:41,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iostream:40,
from built/include/dtoolbase_cc.h:54,
from built/include/dtoolbase.h:422,
from built/include/pandabase.h:22,
from panda/src/movies/config_movies.h:18,
from panda/src/movies/config_movies.cxx:15,
from panda/src/movies/p3movies_composite1.cxx:1:
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
In file included from panda/src/movies/p3movies_composite1.cxx:16:0:
panda/src/movies/wavAudioCursor.cxx:301:75: note: deduced conflicting types for parameter ‘const _Tp’ (‘double’ and ‘size_t {aka long unsigned int}’)
panda/src/movies/wavAudioCursor.cxx: In member function ‘virtual void WavAudioCursor::read_samples(int, PN_int16*)’:
panda/src/movies/wavAudioCursor.cxx:341:79: error: no matching function for call to ‘min(int&, long unsigned int)’
panda/src/movies/wavAudioCursor.cxx:341:79: note: candidates are:
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
from /usr/include/c++/4.7/ios:41,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iostream:40,
from built/include/dtoolbase_cc.h:54,
from built/include/dtoolbase.h:422,
from built/include/pandabase.h:22,
from panda/src/movies/config_movies.h:18,
from panda/src/movies/config_movies.cxx:15,
from panda/src/movies/p3movies_composite1.cxx:1:
/usr/include/c++/4.7/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/usr/include/c++/4.7/bits/stl_algobase.h:187:5: note: template argument deduction/substitution failed:
In file included from panda/src/movies/p3movies_composite1.cxx:16:0:
panda/src/movies/wavAudioCursor.cxx:341:79: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long unsigned int’)
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
from /usr/include/c++/4.7/ios:41,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iostream:40,
from built/include/dtoolbase_cc.h:54,
from built/include/dtoolbase.h:422,
from built/include/pandabase.h:22,
from panda/src/movies/config_movies.h:18,
from panda/src/movies/config_movies.cxx:15,
from panda/src/movies/p3movies_composite1.cxx:1:
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
In file included from panda/src/movies/p3movies_composite1.cxx:16:0:
panda/src/movies/wavAudioCursor.cxx:341:79: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long unsigned int’)
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3movies_composite1.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python2.7 -Ipanda/src/movies -pthread -O2 -DBUILDING_PANDA panda/src/movies/p3movies_composite1.cxx
Is there any work around?
Thanks for your help
Best
Timo