error on operator <<..while compilation

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-
where ().bottom; iY++) {
586 for (CoordI iX = pfi->where ().left;
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..
 
F

fred.l.kleinschmidt

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->where ().bottom; iY++) {

586 for (CoordI iX = pfi->where ().left;
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..

whtz dt tp v m_pstrmTrace?

plz dnt uz silly abbreviations.
-Fred Kleinschmidt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top