oldcpp is not building

Sandro Andrade sandroandrade at kde.org
Sat Jun 27 19:51:44 UTC 2015


On Fri, Jun 26, 2015 at 11:47 PM, Aleix Pol <aleixpol at kde.org> wrote:
> Hi,
> Can anybody take a look at this compilation failure?
>
> It's been reported by other people as well.

Indeed, I'm also getting this failure.
The ref() method was removed in kdevplatform's commit
e22645664c263884c7c3013fb07607304b6b0718
Reverting it makes the build working.

Cheers,
Sandro

>
> Thanks!
> Aleix
>
> compiling cpppreprocessenvironment.cpp (c++)
> /home/kde-devel/frameworks/kdevelop/languages/cpp/cppduchain/cpppreprocessenvironment.cpp:
> In member function ‘void CppPreprocessEnvironment::merge(const
> ReferenceCountedMacroSet&)’:
> /home/kde-devel/frameworks/kdevelop/languages/cpp/cppduchain/cpppreprocessenvironment.cpp:102:67:
> error: ‘Utils::StorableSet<rpp::pp_macro, Cpp::MacroIndexConversion,
> Cpp::StaticMacroSetRepository, true,
> Cpp::StaticMacroSetRepository::Locker>::Iterator {aka class
> Utils::ConvenientIterator<rpp::pp_macro, Cpp::MacroIndexConversion>}’
> has no member named ‘ref’
>          rpp::Environment::setMacro(const_cast<rpp::pp_macro*>(&it.ref()));
> //Do not use our overridden setMacro(..), because addDefinedMacro(..)
> is not needed(macro-sets should be merged separately)
>                                                                    ^
> /home/kde-devel/frameworks/kdevelop/languages/cpp/cppduchain/cpppreprocessenvironment.cpp:104:17:
> error: ‘Utils::StorableSet<rpp::pp_macro, Cpp::MacroIndexConversion,
> Cpp::StaticMacroSetRepository, true,
> Cpp::StaticMacroSetRepository::Locker>::Iterator {aka class
> Utils::ConvenientIterator<rpp::pp_macro, Cpp::MacroIndexConversion>}’
> has no member named ‘ref’
>          if( !it.ref().isUndef() )
>                  ^
> /home/kde-devel/frameworks/kdevelop/languages/cpp/cppduchain/cpppreprocessenvironment.cpp:105:36:
> error: ‘Utils::StorableSet<rpp::pp_macro, Cpp::MacroIndexConversion,
> Cpp::StaticMacroSetRepository, true,
> Cpp::StaticMacroSetRepository::Locker>::Iterator {aka class
> Utils::ConvenientIterator<rpp::pp_macro, Cpp::MacroIndexConversion>}’
> has no member named ‘ref’
>            m_macroNameSet.insert(it.ref().name);
>                                     ^
> /home/kde-devel/frameworks/kdevelop/languages/cpp/cppduchain/cpppreprocessenvironment.cpp:107:36:
> error: ‘Utils::StorableSet<rpp::pp_macro, Cpp::MacroIndexConversion,
> Cpp::StaticMacroSetRepository, true,
> Cpp::StaticMacroSetRepository::Locker>::Iterator {aka class
> Utils::ConvenientIterator<rpp::pp_macro, Cpp::MacroIndexConversion>}’
> has no member named ‘ref’
>            m_macroNameSet.remove(it.ref().name);
>                                     ^
> /home/kde-devel/frameworks/kdevelop/languages/cpp/cppduchain/cpppreprocessenvironment.cpp:
> In member function ‘void CppPreprocessEnvironment::merge(const
> Cpp::EnvironmentFile*, bool)’:
> /home/kde-devel/frameworks/kdevelop/languages/cpp/cppduchain/cpppreprocessenvironment.cpp:118:65:
> error: ‘Utils::StorableSet<rpp::pp_macro, Cpp::MacroIndexConversion,
> Cpp::StaticMacroSetRepository, true,
> Cpp::StaticMacroSetRepository::Locker>::Iterator {aka class
> Utils::ConvenientIterator<rpp::pp_macro, Cpp::MacroIndexConversion>}’
> has no member named ‘ref’
>        rpp::Environment::setMacro(const_cast<rpp::pp_macro*>(&it.ref()));
> //Do not use our overridden setMacro(..), because addDefinedMacro(..)
> is not needed(macro-sets should be merged separately)
>                                                                  ^
> ninja: build stopped: subcommand failed.
> *** Failure: Exit code 1 ***
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop-devel


More information about the KDevelop-devel mailing list