473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

error while compilation .help

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 .




Nov 26 '07 #1
3 2655
kanalkannan wrote:
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
1) include <ios>
2) use std::streampos

Regards,

Zeppe
Nov 26 '07 #2
On Nov 26, 2:33 pm, Zeppe
<ze...@remove.all.this.long.comment.yahoo.itwrot e:
kanalkannan wrote:
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

1) include <ios>
2) use std::streampos

Regards,

Zeppe

well,now the above error has gone..
but the following errors are still unresolvable..
bitstrm.hpp:17: error: forward declaration of 'struct istream'
bitstrm.cpp:142: error: invalid use of undefined type 'struct

code:::
bitstream.cpp
-------------
77: m_chDecBuffer = m_pInStream -get ();

bitstream.hpp
-------------
17: class istream;

note::i also included the ios both in cpp and hpp files..
i got the similar type of errors throughout more parts of the code..
please help me to fix this..
Nov 26 '07 #3
On Nov 26, 2:33 pm, Zeppe
<ze...@remove.all.this.long.comment.yahoo.itwrot e:
kanalkannan wrote:
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

1) include <ios>
2) use std::streampos

Regards,

Zeppe

well,now the above error has gone..
but the following errors are still unresolvable..
bitstrm.hpp:17: error: forward declaration of 'struct istream'
bitstrm.cpp:142: error: invalid use of undefined type 'struct

code:::
bitstream.cpp
-------------
142: m_chDecBuffer = m_pInStream -get ();

bitstream.hpp
-------------
17: class istream;

note::i also included the ios both in cpp and hpp files..
i got the similar type of errors throughout more parts of the code..
please help me to fix this..
Nov 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
6
by: Plat | last post by:
I've Googled this for a while, to no avail. Hopefully someone can help me. Maybe I'm using the wrong terminology. Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax...
0
by: roger23 | last post by:
I get this error C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(526,9): error MSB6006: "aspnet_compiler.exe" exited with code 1. at the end of my build...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
3
by: Santosh | last post by:
Hii , i am developing an web application using asp.net with in it reporting purpose i am using crystal reports. it is working on fine on local server. but when i deploy it on web server it gives...
7
by: Mark Carrington | last post by:
I'm developing a web app in .NET 2 using C#, and occasionally see this error, apparently something to do with the theme used on the site: Compiler Error Message: The compiler failed with error...
3
by: sam_cit | last post by:
Hi All, I have the following scenario, A class is declared in the header file and has a static member function sample() in sample.h sample.cc uses the static member function sample(). the...
7
by: news.microsoft.com | last post by:
I have an asp.net 2.0 project that when I change the build configuration to release I get the following error: Command line error BC2014: the value 'None' is invalid for option 'debug'. If I...
1
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
3
by: Hill | last post by:
This is an simple map, just an exercise. Who can help me fix this compile issue?Thanks in advance. #include <string> #include <vector> #include <iostream> using std::vector; using std::string;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.