I have RedHat GNU/Linux 9.0 and I got following error during compilation:
In file included from /usr/include/c++/3.2.2/backward/ostream.h:31,
/usr/include/c++/3.2.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 18.104.22.168 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.
psitime.cc:66: default argument given for parameter 2 of `
PsiTime::PsiTime(timeval*, timezone* = 0)'
psitime.h:145: after previous specification in `PsiTime::PsiTime(timeval*,
timezone* = 0)'
make: *** [psitime.lo] Error 1
make: Leaving directory `/server/tars/plptools-0.12/lib'
make: *** [all-recursive] Error 1
So what is the problem?
SOLUTION FOUND! ...............................
Change the line 145 in lib/psitime.h to:
PsiTime(struct timeval *_utv, struct timezone *_utz);
After that PLP Tools compiles without any problems!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.