* sizeof(bool)
@ 2004-08-23 16:48 Betu, Satyanarayana
2004-08-24 1:41 ` sizeof(bool) Falk Hueffner
0 siblings, 1 reply; 2+ messages in thread
From: Betu, Satyanarayana @ 2004-08-23 16:48 UTC (permalink / raw)
To: gcc-help
Hello Sir,
we are using g++ 2.95.3 .Currently we are facing problems with data type bool.Programs compiling with this compiler are taking bool size as 4 because of which we are not able to prote this application to another machines.Do u have any patch for this problem?
Thanks & Regards
Satya
VISA - VDPS Development
IT Division
Basingstoke
LONDON
+44 1256 89 1541 (O)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sizeof(bool)
2004-08-23 16:48 sizeof(bool) Betu, Satyanarayana
@ 2004-08-24 1:41 ` Falk Hueffner
0 siblings, 0 replies; 2+ messages in thread
From: Falk Hueffner @ 2004-08-24 1:41 UTC (permalink / raw)
To: Betu, Satyanarayana; +Cc: gcc-help
"Betu, Satyanarayana" <betus@visa.com> writes:
> we are using g++ 2.95.3 .Currently we are facing problems with data
> type bool.Programs compiling with this compiler are taking bool size
> as 4 because of which we are not able to prote this application to
> another machines.Do u have any patch for this problem?
The C++ standard allows bool to have size 4, so there is no problem in
g++; the problem is in your application.
However, you might consider upgrading to a current version of g++,
where the size of bool is 1 consistently over all architectures.
--
Falk
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-23 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23 16:48 sizeof(bool) Betu, Satyanarayana
2004-08-24 1:41 ` sizeof(bool) Falk Hueffner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).