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::b ookmark (Bool bSet)
127 {
128 static Bool bBookmarkOn = FALSE;
129 static streampos strmpos;
130 static UInt uNumOfBitsInBuf fer;
131 static Char chDecBuffer;
132 static Int lCounter;
133
134 if(bSet) {
135 strmpos = m_pInStream -tellg();
136 uNumOfBitsInBuf fer = m_uNumOfBitsInB uffer;
137 chDecBuffer = m_chDecBuffer;
138 lCounter = m_lCounter;
139 bBookmarkOn = TRUE;
140 }
141 else {
142 m_pInStream -seekg (strmpos);
143 m_uNumOfBitsInB uffer = uNumOfBitsInBuf fer;
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::b ookmark (Bool bSet)
127 {
128 static Bool bBookmarkOn = FALSE;
129 static streampos strmpos;
130 static UInt uNumOfBitsInBuf fer;
131 static Char chDecBuffer;
132 static Int lCounter;
133
134 if(bSet) {
135 strmpos = m_pInStream -tellg();
136 uNumOfBitsInBuf fer = m_uNumOfBitsInB uffer;
137 chDecBuffer = m_chDecBuffer;
138 lCounter = m_lCounter;
139 bBookmarkOn = TRUE;
140 }
141 else {
142 m_pInStream -seekg (strmpos);
143 m_uNumOfBitsInB uffer = uNumOfBitsInBuf fer;
144 m_chDecBuffer = chDecBuffer;
145 m_lCounter = lCounter;
146 bBookmarkOn = FALSE;
147 }
148 }
Thanks in advance .
Comment