[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use list.h in Solaris 10 & g++ 3.3.2
From: |
Ulrich Eckhardt |
Subject: |
Re: How to use list.h in Solaris 10 & g++ 3.3.2 |
Date: |
Sun, 18 Jun 2006 13:08:41 +0200 |
User-agent: |
KNode/0.10.2 |
Steve Bby wrote:
> #include <list.h>
What is that header? Standard C++ has a header called <list>, maybe that is
what you want.
> I compile it by using g++ (gcc-2_8_1-sol7-intel-local)
> on Solaris8, No problem!!
Wow, gcc 2.8. Now, this thing is not merely old, it is a dinosaur. So, I
guess you will have a lot of porting to do, getting the code from the
pre-standard C++ dialect that this compiler swallowed to the conforming
C++ that current g++ requires.
> In file included from /usr/local/include/c++/3.3.2/backward/list.h:59,
> from client/bmain.c:2:
> /usr/local/include/c++/3.3.2/backward/backward_warning.h:32:2: warning:
> #warning This file includes at least one deprecated or antiquated
> header. Please consider using one of the 32 headers found in section
> 17.4.1.2 of the C++ standard. Examples include substituting the <X>
> header for the <X.h> header for C++ includes, or <sstream> instead of
> the deprecated header <strstream.h>.
Well, it seems g++ is even telling you what is wrong.
> exception_defines.h: No such file or directory
Hmm, this should be a bug though, or at least some backward and deprecated
stuff not implemented perfectly. Don't expect this to get fixed, rather
fix your code.
You might also want to get a good book on C++ (the current, standardised
dialect thereof), take a look at the book reviews at accu.org.
Uli
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/