[sldev] Help compiling the Viewer (could not deduce template
argument ... from 'LLMessageThrottleEntry')
Soft
soft at lindenlab.com
Wed Oct 10 06:16:46 PDT 2007
On 10/10/07, Stefano Crosta (scrosta) <scrosta at cisco.com> wrote:
>
> this is a *desperate* call for help. I am trying to compile the viewer on a
> new dev machine and, silly me, it's a Vista OS with Visual Studio 2008. I
> have been able to compile all the libs regardless of minor issues with the
> wiki doc, gone through mad issues with file permissions when using 7-zip
> (DON'T, on Vista), (and am willing to put more info on the wiki) but this
> one i really can't solve:
>
>
> 1>llmessagethrottle.cpp
> 1>c:\program files\development\microsoft visual studio
> 9.0\vc\include\algorithm(406) : error C2784: 'bool std::operator ==(const
> std::deque<_Ty,_Alloc> &,const std::deque<_Ty,_Alloc> &)' : could not deduce
> template argument for 'const std::deque<_Ty,_Alloc> &' from
> 'LLMessageThrottleEntry'
> 1> c:\program files\development\microsoft visual studio
> 9.0\vc\include\deque(1341) : see declaration of 'std::operator =='
> 1> c:\program files\development\microsoft visual studio
> 9.0\vc\include\algorithm(435) : see reference to function template
> instantiation '_FwdIt1
> std::_Search_n<_FwdIt1,_Diff2,_Ty,bool(__cdecl
> *)(LLMessageThrottleEntry,LLMessageThrottleEntry)>(_FwdIt1,_FwdIt1,_Diff2,const
> _Ty &,_Pr,std::random_access_iterator_tag)' being compiled
> 1> with
> 1> [
> 1>
> _FwdIt1=LLMessageThrottle::message_list_iterator_t,
> 1> _Diff2=int,
> 1> _Ty=LLMessageThrottleEntry,
> 1> _Pr=bool (__cdecl
> *)(LLMessageThrottleEntry,LLMessageThrottleEntry)
> 1> ]
> 1>
> c:\sources\secondlife\lindenlabclient\indra\llmessage\llmessagethrottle.cpp(114)
> : see reference to function template instantiation '_FwdIt1
> std::search_n<LLMessageThrottle::message_list_iterator_t,int,LLMessageThrottleEntry,bool(__cdecl
> *)(LLMessageThrottleEntry,LLMessageThrottleEntry)>(_FwdIt1,_FwdIt1,_Diff2,const
> _Ty &,_Pr)' being compiled
> 1> with
> 1> [
> 1>
> _FwdIt1=LLMessageThrottle::message_list_iterator_t,
> 1> _Diff2=int,
> 1> _Ty=LLMessageThrottleEntry,
> 1> _Pr=bool (__cdecl
> *)(LLMessageThrottleEntry,LLMessageThrottleEntry)
> 1> ]
>
> (when compiling llmessage)
>
> After this, i get hundred of errors all related to:
> > could not deduce template argument for 'SOMETHING' from
> 'LLMessageThrottleEntry'
>
> Any idea of why? I could not find any evidence of the VS 9 compiler to have
> changed, but that seems to be the case. I guess some explicit argument
> template declaration would do the trick... but i can't figure out where!
It would help to post the surrounding lines from the
llmessagethrottle.cpp source in the version of the source you're
using.
Also, it's not uncommon that some of the changes aren't documented
until after the compiler is out of beta. You may well be experiencing
changes before the Visual Studio team is aware of them.
> Any help would be more than welcome... before i spend 3 days re-installing
> XP and an older VS version :(
You shouldn't need to install XP. Many people are using the free
express version of Visual Studio 2005 with success. There's a JIRA
that carries current versions of the project files, which should be
referenced from the build instruction page.
More information about the SLDev
mailing list