K
kanalkannan
hi all
i compiled a c++ application using bfin-elf-g++ compiler and ended
with some errors
ERRORS:::
bitstrm.cpp: In member function 'Void COutBitStream::trace(const
CFloatImage*, const Char*, CRct)':
bitstrm.cpp:570: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace <<
rgchSym bolName'
bitstrm.cpp:576: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << iValue'
bitstrm.cpp:579: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << "\012"'
bitstrm.cpp:588: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << iValue'
bitstrm.cpp:591: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << "\012"'
CODE:::
565 Void COutBitStream::trace (const CFloatImage* pfi, const
Char* rgchSymbolName, CRct rct)
566 {
567 if (m_pstrmTrace == NULL)
568 return;
569 Int iValue;
570 (*m_pstrmTrace) << rgchSymbolName << "= \n";
571 if (rct.valid ()) {
572 for (CoordI iY = rct.top; iY < rct.bottom; iY+
+) {
573 const PixelF* ppxlf = pfi->pixels
(rct.left, iY);
574 for (CoordI iX = rct.left; iX <
rct.right; iX++) {
575 iValue = (Int) *ppxlf;
576 (*m_pstrmTrace) << iValue << "
";
577 ppxlf++;
578 }
579 (*m_pstrmTrace) << "\n";
580 }
581
582 }
583 else {
584 const PixelF* ppxlf = pfi->pixels ();
585 for (CoordI iY = pfi->where ().top; iY < pfi-
iX < pfi->where ().right; iX++) {
587 iValue = (Int) *ppxlf;
588 (*m_pstrmTrace) << iValue << "
";
589 ppxlf++;
590 }
591 (*m_pstrmTrace) << "\n";
592 }
593 }
594 m_pstrmTrace->flush ();
595 }
plz help me to solve this..
i compiled a c++ application using bfin-elf-g++ compiler and ended
with some errors
ERRORS:::
bitstrm.cpp: In member function 'Void COutBitStream::trace(const
CFloatImage*, const Char*, CRct)':
bitstrm.cpp:570: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace <<
rgchSym bolName'
bitstrm.cpp:576: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << iValue'
bitstrm.cpp:579: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << "\012"'
bitstrm.cpp:588: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << iValue'
bitstrm.cpp:591: error: no match for 'operator<<' in
'*((COutBitStream*)this)->COutBitStream::m_pstrmTrace << "\012"'
CODE:::
565 Void COutBitStream::trace (const CFloatImage* pfi, const
Char* rgchSymbolName, CRct rct)
566 {
567 if (m_pstrmTrace == NULL)
568 return;
569 Int iValue;
570 (*m_pstrmTrace) << rgchSymbolName << "= \n";
571 if (rct.valid ()) {
572 for (CoordI iY = rct.top; iY < rct.bottom; iY+
+) {
573 const PixelF* ppxlf = pfi->pixels
(rct.left, iY);
574 for (CoordI iX = rct.left; iX <
rct.right; iX++) {
575 iValue = (Int) *ppxlf;
576 (*m_pstrmTrace) << iValue << "
";
577 ppxlf++;
578 }
579 (*m_pstrmTrace) << "\n";
580 }
581
582 }
583 else {
584 const PixelF* ppxlf = pfi->pixels ();
585 for (CoordI iY = pfi->where ().top; iY < pfi-
586 for (CoordI iX = pfi->where ().left;where ().bottom; iY++) {
iX < pfi->where ().right; iX++) {
587 iValue = (Int) *ppxlf;
588 (*m_pstrmTrace) << iValue << "
";
589 ppxlf++;
590 }
591 (*m_pstrmTrace) << "\n";
592 }
593 }
594 m_pstrmTrace->flush ();
595 }
plz help me to solve this..