Ilya Chernykh
2012-05-02 04:50:55 UTC
Hi!
I got the following error (https://build.opensuse.org/package/live_build_log?arch=i586&package=kde3-krusader&project=KDE%3AKDE3&repository=openSUSE_Factory):
===
tstring.h:102:3: error: 'make_pair' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from /usr/include/c++/4.7/utility:72:0,
from /usr/include/c++/4.7/algorithm:61,
from expander.cpp:13:
/usr/include/c++/4.7/bits/stl_pair.h:284:5: note: 'template<class _T1, class _T2> std::pair<_T1, _T2> std::make_pair(_T1, _T2)' declared here, later in the translation unit
===
But file "#include <utility>" (from which stl_pair is included) is included in the very beginning of tstring.h. I wonder why the compiler says it is included later if it is in the very beginning.
I got the following error (https://build.opensuse.org/package/live_build_log?arch=i586&package=kde3-krusader&project=KDE%3AKDE3&repository=openSUSE_Factory):
===
tstring.h:102:3: error: 'make_pair' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from /usr/include/c++/4.7/utility:72:0,
from /usr/include/c++/4.7/algorithm:61,
from expander.cpp:13:
/usr/include/c++/4.7/bits/stl_pair.h:284:5: note: 'template<class _T1, class _T2> std::pair<_T1, _T2> std::make_pair(_T1, _T2)' declared here, later in the translation unit
===
But file "#include <utility>" (from which stl_pair is included) is included in the very beginning of tstring.h. I wonder why the compiler says it is included later if it is in the very beginning.
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org