Compilation Issues on Centos5

"Edd Barrett" <[email protected]>
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
Hi there,

I am trying to build ddd on a centos 5 box, for student use in a university.

Th configure command I am using looks like this:
---8<---
CPPFLAGS=-I/usr/include/c++/4.1.1/backward ./configure
--prefix=/tmp/ddd --includedir=/usr/include/c++/4.1.1/backward
--oldincludedir=/usr/include/c++/4.1.1/backward
---8<---

As you can see I have tried everything I can to have the compiler use
the 'backward compatible' headers, which either redhat or centos have
decided should be moved out of the standard header path.

The build initially fails with the following error:
---8<---
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../include/c++/4.1.1/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 <iostream>
instead of the deprecated header <iostream.h>. To disable this warning
use -Wno-deprecated.
strclass.h:543: error: expected `)' before '&' token
---8<---

Line 543 of strclass.h looks like this:
---8<---
string(ostrstream& os); // should be const
---8<---

ostrstream is defined in <sstream> which is located in
/usr/lib/c++/4.1.1/backward.

At this point I am stuck. Does anyone have any ideas?

Thanks

-- 
Best Regards

Edd

---------------------------------------------------
http://students.dec.bournemouth.ac.uk/ebarrett
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.