Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Win32 CBTortoiseSVN plugin under subversion control
Fizick:
Ii is not compilerd for we with gcc 4.3.2, latest codeblocks SVN
--- Code: ---utils.cpp|40|error: no matching function for call to 'find(__gnu_cxx::__normal_iterator<CBTSVN::ILogSink**, std::vector<CBTSVN::ILogSink*, std::allocator<CBTSVN::ILogSink*> > >, __gnu_cxx::__normal_iterator<CBTSVN::ILogSink**, std::vector<CBTSVN::ILogSink*, std::allocator<CBTSVN::ILogSink*> > >, CBTSVN::ILogSink*)'|
--- End code ---
--- Code: ---void CBTSVN::Logger::Subscribe(ILogSink& client)
{
if (std::find(m_subscribers.begin(),
m_subscribers.end(), &client) == m_subscribers.end())
m_subscribers.push_back(&client);
}
--- End code ---
UPDATE:
I found, that plugin is compiled fine, if we add one line to utils.cpp (or utils.h):
#include <algorithm>
:)
Jan van den Borst:
Just checked this in (I put #include <algorithm> in precompiled header file)
Jan
--- Quote from: Fizick on October 22, 2008, 02:42:55 pm ---Ii is not compilerd for we with gcc 4.3.2, latest codeblocks SVN
--- Code: ---utils.cpp|40|error: no matching function for call to 'find(__gnu_cxx::__normal_iterator<CBTSVN::ILogSink**, std::vector<CBTSVN::ILogSink*, std::allocator<CBTSVN::ILogSink*> > >, __gnu_cxx::__normal_iterator<CBTSVN::ILogSink**, std::vector<CBTSVN::ILogSink*, std::allocator<CBTSVN::ILogSink*> > >, CBTSVN::ILogSink*)'|
--- End code ---
--- Code: ---void CBTSVN::Logger::Subscribe(ILogSink& client)
{
if (std::find(m_subscribers.begin(),
m_subscribers.end(), &client) == m_subscribers.end())
m_subscribers.push_back(&client);
}
--- End code ---
UPDATE:
I found, that plugin is compiled fine, if we add one line to utils.cpp (or utils.h):
#include <algorithm>
:)
--- End quote ---
Fizick:
Hm, I do not see it at svn trunk.
Jan van den Borst:
Yep
Stupid me, it was in the branch
http://tools.assembla.com/svn/CBTortoiseSVN/CBTortoiseSVN/branches/feature_custom_location
Jan
Jan van den Borst:
Just fixed the trunk
http://tools.assembla.com/svn/CBTortoiseSVN/CBTortoiseSVN/trunk
Jan
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version