Mailinglist Archive: opensuse-packaging (222 mails)

< Previous Next >
[opensuse-packaging] Need help with gcc45 error
  • From: Dave Plater <davejplater@xxxxxxxxx>
  • Date: Thu, 08 Apr 2010 12:41:09 +0200
  • Message-id: <4BBDB2C5.20608@xxxxxxxxx>
Hi, I've the following errors in the gcc45 build of multimedia:apps dirac :-
quant_chooser.cpp: In member function 'void
dirac::QuantChooser::SetSkip(dirac::CodeBlock&, int)':
quant_chooser.cpp:343:49: error: invalid operands of types
'__gnu_cxx::__enable_if<true, double>::__type' and 'int' to binary
'operator<<'
in line 343 where [i] is column 49 :-
if ( (std::abs(m_coeff_data[j][i])<<2) >= u_threshold )
can_skip = false;
In function :-
void QuantChooser::SetSkip( CodeBlock& cblock , const int qidx)
{
const int u_threshold = dirac_quantiser_lists.QuantFactor4( qidx );

// Sets the skip flag for a codeblock
bool can_skip = true;
for (int j=cblock.Ystart(); j<cblock.Yend(); ++j )
{
for (int i=cblock.Xstart(); i<cblock.Xend(); ++i )
{
if ( (std::abs(m_coeff_data[j][i])<<2) >= u_threshold )
can_skip = false;
}
}
cblock.SetSkip( can_skip );
}

and another one:-
quant_chooser.cpp: In member function 'dirac::CoeffType
dirac::QuantChooser::BlockAbsMax(const dirac::Subband&)':
quant_chooser.cpp:358:64: error: no matching function for call to
'max(int&, __gnu_cxx::__enable_if<true, double>::__type)'
In line 358 where the last ) before ; is column 64:-
val = std::max( val , std::abs(m_coeff_data[j][i]) );
In function
CoeffType QuantChooser::BlockAbsMax( const Subband& node )
{
int val( 0 );

for (int j=node.Yp() ; j<node.Yp()+node.Yl(); ++j)
{
for (int i=node.Xp() ; i<node.Xp()+node.Xl(); ++i)
{
val = std::max( val , std::abs(m_coeff_data[j][i]) );
}// i
}// j

return val;
}
Can anyone tell me what's wrong, I don't understand the gcc output at
all, the package has failed for 45 days apparently, the 11.2 build is fine.
Thanks
Dave P
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups