Re: Ropes in stl (was Re: lack of wstring in libstdc++2.8-dev)
Sorry to follow myself up so quickly, but I found the fault. The ropeimpl.h file is in error complared to the version from SGI's STL. Here's the diff: --- ropeimpl.h.orig Mon Oct 12 14:18:53 1998 +++ ropeimpl.h Mon Oct 12 14:17:25 1998 @@ -1082,7 +1082,7 @@ /* 35 */24157817, /* 36 */39088169, /* 37 */63245986, /* 38 */102334155, /* 39 */165580141, /* 40 */267914296, /* 41 */433494437, /* 42 */701408733, /* 43 */1134903170, /* 44 */1836311903, -/* 45 */2971215073 }; +/* 45 */2971215073u }; // These are Fibonacci numbers < 2**32. template I'll post a bug against libc++2.9-dev chris On Mon, Oct 12, 1998 at 02:14:30PM +1000, Chris wrote: > InterestingI cant seem to use ropes with libc++2.9-dev > > I tried this: > > #include // Also tried #include > > void main(void) > { > rope r; > } > > But I get these errors: > > In file included from /usr/include/g++-2/stl_rope.h:2107, > from /usr/include/g++-2/rope.h:18, > from blah.cc:1: > /usr/include/g++-2/ropeimpl.h:1085: warning: decimal integer constant is so > large that it is unsigned > > > The relevant section in ropeimpl.h contains numbers from the fibonacci > sequence up to 2^32(Anyone know why these are relevant to ropes?) > > > Anyone else have this problem? Know a solution? > > > Thanks, > > > Chris > > > > -- > > -- > REALITY.SYS corrupted: Reboot universe? (Y/N/Q) Debian GNU/Linux > -- > Reply with subject 'request key' for PGP public key. KeyID 0xA9E087D5 -- -- REALITY.SYS corrupted: Reboot universe? (Y/N/Q) Debian GNU/Linux -- Reply with subject 'request key' for PGP public key. KeyID 0xA9E087D5 pgphvQm915KLy.pgp Description: PGP signature
Re: Ropes in stl (was Re: lack of wstring in libstdc++2.8-dev)
> void main(void) BTW, main returns int, not void. See the comp.lang.c FAQ for the bit of the C standard that defines this - main is incorrectly said to return void in a number of texts though. HTH, Matthew -- Elen sila lumenn' omentielvo Steward of the Cambridge Tolkien Society Selwyn College Computer Support http://www.geocities.com/Area51/Chamber/8841/ http://www.cam.ac.uk/CambUniv/Societies/tolkien/ http://pick.sel.cam.ac.uk/
Re: Ropes in stl (was Re: lack of wstring in libstdc++2.8-dev)
On Mon, Oct 12, 1998 at 08:24:49AM +0100, M.C. Vernon wrote: > > > void main(void) > > > > BTW, main returns int, not void. See the comp.lang.c FAQ for the bit of > the C standard that defines this - main is incorrectly said to return void > in a number of texts though. > > HTH, > > Matthew > Yeah, I know...but when I'm writing little 2second programs to check something I tend to not fuss with returns, etc, etc... Chris -- -- REALITY.SYS corrupted: Reboot universe? (Y/N/Q) Debian GNU/Linux -- Reply with subject 'request key' for PGP public key. KeyID 0xA9E087D5
Re: Ropes in stl (was Re: lack of wstring in libstdc++2.8-dev)
On Mon 12 Oct 1998, Chris Leishman wrote: > On Mon, Oct 12, 1998 at 08:24:49AM +0100, M.C. Vernon wrote: > > > > > void main(void) > > > > > > > > BTW, main returns int, not void. See the comp.lang.c FAQ for the bit of > > the C standard that defines this - main is incorrectly said to return void > > in a number of texts though. > > Yeah, I know...but when I'm writing little 2second programs to check > something I tend to not fuss with returns, etc, etc... Then you should just leave out the "void" in front of "main"; that's less typing and does the right thing :-) Paul Slootman -- home: [EMAIL PROTECTED] | work: [EMAIL PROTECTED] | debian: [EMAIL PROTECTED] http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands
Re: Ropes in stl (was Re: lack of wstring in libstdc++2.8-dev)
Chris <[EMAIL PROTECTED]> writes: > But I get these errors: > > In file included from /usr/include/g++-2/stl_rope.h:2107, > from /usr/include/g++-2/rope.h:18, > from blah.cc:1: > /usr/include/g++-2/ropeimpl.h:1085: warning: decimal integer constant is so > large that it is unsigned As I recall, this isn't an error, just a warning. There are also a number of other annoying warnings that spew like crazy in some of the other stl files. I filed a bug with patches a while back. Hopefully they'll be forwarded. I don't think any of these bugs hurt anything, the compiler does the right thing, it just complains. -- Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930