473,503 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CHAR_BIT issue in gcc 3.3.1

All,

When I include <vector> head file in our application. It generates the
following following error when complileing.
In file included from
/opt/exp/gnu/sparc-sun-solaris2.8/include/c++/3.3.1/vector:72,
from stl_inc.h:8,
from Environment.h:5,
from Environment.cpp:1:
/opt/exp/gnu/sparc-sun-solaris2.8/include/c++/3.3.1/bits/stl_bvector.h:67:
error: `
CHAR_BIT' was not declared in this scope
/opt/exp/gnu/sparc-sun-solaris2.8/include/c++/3.3.1/bits/stl_bvector.h:67:
error: enumerator
value for `_M_word_bit' not integer constant

I don't know why it generate this error. Becuase you know stl_bvector.h is
system file, I can't change it.
Would you mind giving some suggestion?:

Thank you very much in advance.

Ryan
Jul 22 '05 #1
1 6059

"Ryan Liu" <yy***@lucent.com> wrote in message
news:c1********@netnews.proxy.lucent.com...
All,

When I include <vector> head file in our application. It generates the
following following error when complileing.
In file included from
/opt/exp/gnu/sparc-sun-solaris2.8/include/c++/3.3.1/vector:72,
from stl_inc.h:8,
from Environment.h:5,
from Environment.cpp:1:
/opt/exp/gnu/sparc-sun-solaris2.8/include/c++/3.3.1/bits/stl_bvector.h:67:
error: `
CHAR_BIT' was not declared in this scope
/opt/exp/gnu/sparc-sun-solaris2.8/include/c++/3.3.1/bits/stl_bvector.h:67:
error: enumerator
value for `_M_word_bit' not integer constant

I don't know why it generate this error. Becuase you know stl_bvector.h is
system file, I can't change it.
Would you mind giving some suggestion?:

Thank you very much in advance.

Ryan


CHAR_BIT is defined in a header called <limits.h> so you could try including
that in your code before you include <vector>.

But almost certainly this error means there is something wrong with the way
gcc is installed on your system, so I'd spend some time trying to find out
what the real cause of the problem is. Perhaps you should ask on a gcc group
for help with this, since it isn't a C++ language issue.

john
Jul 22 '05 #2

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

Similar topics

3
5204
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and...
7
3278
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
2
2453
by: Anthony Cuttitta Jr. | last post by:
We have an application that outputs several different graphs from data downloaded from our AS400. The application has worked without (this) issue for several months now, but just recently, the...
12
3765
by: Skarmander | last post by:
The standard allows an implementation where CHAR_BIT = 32 and sizeof char = sizeof short = sizeof int = sizeof long = 1, right? Just out of curiosity, does anyone know actual implementations that...
2
2800
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
5
2493
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
6
2246
by: charles_gero | last post by:
Hi Everyone, I have a quick question regarding access to a file from disparate CHAR_BIT systems. Has anyone had experience writing a file on a system where CHAR_BIT is one value (let's use the...
198
5106
by: Antoninus Twink | last post by:
Or, just how low has this group sunk? Twice in the past couple of days, Default Loser has accused Chris Hills, member of the ISO C committee, of being a troll (though given that the former's...
13
3475
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
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
7328
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...
1
6988
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
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
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,...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.