I had sent a report to the opendx-dev list about my problems compiling
OpenDX 4.2 on Mandrake 9.0 (on 3 October). I quote below the part of my
report that interests you.
Good luck!
Anyway, the only thing I had to correct manually (because of compilation
problems that appeared later on) was that 'configure' thought I did not
have strstream.h (possibly because GCC 3.2 issues a warning about
deprecated headers etc. when you use these). So I edited
include/dxconfig.h and changed the relevant #undef to
#define HAVE_STRSTREAM_H 1
I believe 'configure' should be changed at this point, or probably add a
-Wno-deprecated compilation flag.
Guanglei Cui wrote:
Dear all,
I met an error in compiling dx-4.2.0 for mandrake 9.0. Here is the
error message dumped to the console. What should I do to correct this?
Thanks.
g++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../base
-I../../../include -Dlinux -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include
-g -O2 -I/usr/X11R6/include -c GARChooserWindow.C
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from GARApplication.h:19,
from GARChooserWindow.C:50:
/usr/include/c++/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>. To disable this warning use -Wno-deprecated.
g++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../base
-I../../../include -Dlinux -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include
-g -O2 -I/usr/X11R6/include -c GARCommand.C
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from GARApplication.h:19,
from GARCommand.C:23:
/usr/include/c++/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>. To disable this warning use -Wno-deprecated.
GARCommand.C: In member function `virtual boolean
GARCommand::doIt(CommandInterface*)':
GARCommand.C:53: `strstream' undeclared (first use this function)
GARCommand.C:53: (Each undeclared identifier is reported only once for
each function it appears in.)
GARCommand.C:53: parse error before `;' token
GARCommand.C:80: `tmpstr' undeclared (first use this function)
make[3]: *** [GARCommand.o] Error 1
make[3]: Leaving directory `/home/cuigl/tmp/dx-4.2.0/src/uipp/prompter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cuigl/tmp/dx-4.2.0/src/uipp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cuigl/tmp/dx-4.2.0/src'
make: *** [all-recursive] Error 1
--
-----------------------------------------------------------------------
Nikos Platis e-mail: [EMAIL PROTECTED]
Department of Informatics tel: +30 210-727-5102
University of Athens fax: +30 210-727-5114
"The empires of the future are the empires of the mind." - W. Churchill
-----------------------------------------------------------------------