From: Arjen M. <arj...@wl...> - 2004-02-27 10:32:38
|
Andrew Ross wrote: > > On Fri, Feb 27, 2004 at 10:48:25AM +0100, Arjen Markus wrote: > > > > Andrew, > > > > I did so, and the compiler now complained about "cstdlib". Checking the > > contents of the CC include directory, I did not find any such file. > > I do not know much about the C++ versions and standards, but I think > > the compiler is simply too old and does not conform to current > > standards, > > as you suggested. > > > > 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. Regards, Arjen |