From: Andrew R. <and...@us...> - 2004-02-27 14:08:26
|
On Fri, Feb 27, 2004 at 11:29:57AM +0100, Arjen Markus wrote: > Andrew Ross wrote: > > > > Arjen, > > > > Do you know which version of the IRIX C++ compiler you have? A quick > > search on the web shows up both these problems. It seems that the std > > namespace is only defined if you include a suitable header file. We can > > probably fix that. > > > > The missing cstdlib problem is also documented. You may be able to work > > around this by just changing <cstdlib> to use the C version <stdlib.h>. > > I'd rather not make these changes in the examples. Do the bindings > > compile ok for you? If so maybe we should add a note that the examples > > are designed to conform to the latest C++ standards and some older > > compilers may have trouble. > > > > I guess another option would be to have configure pick up these problems > > and provide suitable workarounds. I would probably need some help from > > the configure gurus for that. > > > > The bindings are okay - after I set the option -LANG:std. > > This is also used when compiling the examples, so I am a bit confused > here. > > The version of the C++ compiler on this IRIX system is: 7.30. > As we do not use C++ that often/intensively, it may very well be a > rather > old version. > > I am not sure it is worth the trouble to extend the configuration system > to make it work with an old compiler. The header file <iostream> > mentions a date > like 1998. It would be much easier to simply document which standard we > need. If the bindings are ok I'd probably agree that we should leave the examples alone. I'll try and write some notes for a README in the examples/C++ directory. Andrew |