I’m building on FC4 with GCC 4.1.0, and I get a bunch of “extra
qualification” errors in the C++ code where static functions are
declared inside a class with the class name prefixed… for example,
from gnuradio-core/src/lib/general/gr_clock_recovery_mm_cc.h, there’s
a class that looks like:
line 77 and 78 are
gr_complex gr_clock_recovery_mm_cc::slicer_0deg (gr_complex sample);
gr_complex gr_clock_recovery_mm_cc::slicer_45deg (gr_complex sample);
and GCC 4.1 spits out an error for both, because the
gr_clock_recovery_mm_cc:: prefix is apparently an “extra
qualification”. This occurs in various points in the code, and all I
have to do is go in and remove the prefixes, and it compiles fine. Is
there some reason why these files have been left like this, or should
they be changed?
On Wed, Apr 05, 2006 at 12:54:37PM -0700, Erik T. wrote:
I’m building on FC4 with GCC 4.1.0, and I get a bunch of “extra
qualification” errors in the C++ code where static functions are
declared inside a class with the class name prefixed… for example,
from gnuradio-core/src/lib/general/gr_clock_recovery_mm_cc.h, there’s
a class that looks like:
They’re errors and should be fixed.
Can you get me a list of all files that have this problem?
I don’t have gcc 4.1.0 installed.
I guess the gr_clock_recovery_mm_cc.h was the only one - I know I got
3 or 4 other places on an earlier build, but I guess they’ve been
cleaned up in the current one. I haven’t checked the packages I don’t
use, though (gr-audio-portaudio, gr-comedi, gr-mc4020, gr-audio-oss,
or gr-audio-jack) I did have another problem compiling
gr_clock_recovery_mm_cc.cc - there was a “return” that was spelled
“retrn” or something like that.
“Bob is not a C++ programmer”
“Bob is not a C++ programmer”
. . . . .
Ooopsy. Basically every function I have written or had a hand in. MEA
CULPA.
Bob
Eric B. wrote:
Can you get me a list of all files that have this problem?
I don’t have gcc 4.1.0 installed.
Thanks,
Eric
–
AMSAT VP Engineering. Member: ARRL, AMSAT-DL, TAPR, Packrats,
NJQRP/AMQRP, QRP ARCI, QCWA, FRC. ARRL SDR Wrk Grp Chairman
Laziness is the number one inspiration for ingenuity. Guilty as
charged!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.