From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,ec7bf9fdab6aeb7,start X-Google-Attributes: gidf5392,public X-Google-Thread: f9b51,ec7bf9fdab6aeb7,start X-Google-Attributes: gidf9b51,public X-Google-Thread: 111c93,ec7bf9fdab6aeb7,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-04-29 10:44:00 PST Path: newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!news.demon.co.uk!demon!wookie.demon.co.uk!wookie From: John Beardmore Newsgroups: comp.os.linux.development.system,comp.os.linux.alpha,comp.os.linux.setup Subject: Linux, streams and the standard library Date: Sun, 29 Apr 2001 18:43:41 +0100 Organization: the Saab graveyard ! Message-ID: NNTP-Posting-Host: wookie.demon.co.uk X-NNTP-Posting-Host: wookie.demon.co.uk:158.152.11.56 X-Trace: news.demon.co.uk 988566229 nnrp-14:13782 NO-IDENT wookie.demon.co.uk:158.152.11.56 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed User-Agent: Turnpike/6.00-Beta-2-U () Xref: newsfeed.google.com comp.os.linux.development.system:8753 comp.os.linux.alpha:2770 comp.os.linux.setup:29899 I'm starting a C++ project which has to compile to form both an MSVC 6 command line application and an RH Linux 6.2 command line application. I was hoping to use C++ with the Standard Library as described in "The C++ Programming Language" by Bjarne Stroustrup. WiIl this be possible ? I ask, because as soon as I stated adding code to the class skeleton I found I needed to add a reference to the standard library at link time. Was I being hopelessly naive in expecting it to be linked by default ? In the end I found it in: /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/libstdc++.a but it doesn't seem to be in the default library path so I have to identify the full path in the Makefile. That stuff now compiles, but is this normal ? Now I've added stuff that requires the #include according to Stroustrup. I can find sstream.h, but only in: /usr/include/linuxconf/sstream.h which doesn't seem to be in the default include path. When I include this by giving the full path, the compile fails, complaining that ostringstream is undeclared, and it does indeed seem to be unmentioned the linuxconf sstream.h file. So - a couple of questions: 1) is there a way to get ostringstream to work ? 2) is the Standard C++ library ready for prime time under Linux ? Isn't its use utterly routine these days ? Or am I trying to be too modern ? I'm having no problem getting this stuff to compile under MSVC 6. Have I missed something obvious under Linux ? If the compiler that ships with RH6.2 won't do what I need, ( I guess it must be a year old now ! ), is it simple to upgrade it to a later gcc that will ? If gcc won't work with the standard C++ lib, will the Compaq C for Linux Alpha compiler be any use ? Will that compiler coexist with the Linux compiler ? I gather I'd still need that for building kernels ! I've just tried to get an 'on line test drive' to see if the Compaq compiler would compile my code skeleton, but the link from the Compaq site is broken. If I can, I'd rather stay with a standard Linux compiler so that we can port to Intel Linux if needs be later on. Cheers, J/. -- John Beardmore