K
kanalkannan
hi friends
I compiled mpeg application and got some errors on that..
I used bfin-elf-g++ cross compiler
Error:
bitstrm.cpp:129: error: 'streampos' does not name a type
bitstrm.cpp:135: error: 'strmpos' was not declared in this scope
bitstrm.cpp:135: error: invalid use of undefined type 'struct
istream'
bitstrm.hpp:17: error: forward declaration of 'struct istream'
bitstrm.cpp:142: error: invalid use of undefined type 'struct
istream'
bitstrm.hpp:17: error: forward declaration of 'struct istream'
bitstrm.cpp:142: error: 'strmpos' was not declared in this scope
code:
Void CInBitStream::bookmark (Bool bSet)
127 {
128 static Bool bBookmarkOn = FALSE;
129 static streampos strmpos;
130 static UInt uNumOfBitsInBuffer;
131 static Char chDecBuffer;
132 static Int lCounter;
133
134 if(bSet) {
135 strmpos = m_pInStream -> tellg();
136 uNumOfBitsInBuffer = m_uNumOfBitsInBuffer;
137 chDecBuffer = m_chDecBuffer;
138 lCounter = m_lCounter;
139 bBookmarkOn = TRUE;
140 }
141 else {
142 m_pInStream -> seekg (strmpos);
143 m_uNumOfBitsInBuffer = uNumOfBitsInBuffer;
144 m_chDecBuffer = chDecBuffer;
145 m_lCounter = lCounter;
146 bBookmarkOn = FALSE;
147 }
148 }
Thanks in advance .
I compiled mpeg application and got some errors on that..
I used bfin-elf-g++ cross compiler
Error:
bitstrm.cpp:129: error: 'streampos' does not name a type
bitstrm.cpp:135: error: 'strmpos' was not declared in this scope
bitstrm.cpp:135: error: invalid use of undefined type 'struct
istream'
bitstrm.hpp:17: error: forward declaration of 'struct istream'
bitstrm.cpp:142: error: invalid use of undefined type 'struct
istream'
bitstrm.hpp:17: error: forward declaration of 'struct istream'
bitstrm.cpp:142: error: 'strmpos' was not declared in this scope
code:
Void CInBitStream::bookmark (Bool bSet)
127 {
128 static Bool bBookmarkOn = FALSE;
129 static streampos strmpos;
130 static UInt uNumOfBitsInBuffer;
131 static Char chDecBuffer;
132 static Int lCounter;
133
134 if(bSet) {
135 strmpos = m_pInStream -> tellg();
136 uNumOfBitsInBuffer = m_uNumOfBitsInBuffer;
137 chDecBuffer = m_chDecBuffer;
138 lCounter = m_lCounter;
139 bBookmarkOn = TRUE;
140 }
141 else {
142 m_pInStream -> seekg (strmpos);
143 m_uNumOfBitsInBuffer = uNumOfBitsInBuffer;
144 m_chDecBuffer = chDecBuffer;
145 m_lCounter = lCounter;
146 bBookmarkOn = FALSE;
147 }
148 }
Thanks in advance .