Skip to content

Build fails because of various C++ errors #222

@yurivict

Description

@yurivict
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:51:31: error: cannot define or redeclare 'init' here because namespace 'impl' does not enclose namespace 'samplerate_converter'
void samplerate_converter<T>::init(sample_rate_conversion_quality quality, itype interpolation_factor,
     ~~~~~~~~~~~~~~~~~~~~~~~~~^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:54:5: error: invalid use of 'this' outside of a non-static member function
    this->kaiser_beta     = this->window_param(quality);
    ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:54:29: error: invalid use of 'this' outside of a non-static member function
    this->kaiser_beta     = this->window_param(quality);
                            ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:54:48: error: use of undeclared identifier 'quality'
    this->kaiser_beta     = this->window_param(quality);
                                               ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:55:5: error: invalid use of 'this' outside of a non-static member function
    this->depth           = static_cast<itype>(this->filter_order(quality));
    ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:55:48: error: invalid use of 'this' outside of a non-static member function
    this->depth           = static_cast<itype>(this->filter_order(quality));
                                               ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:55:67: error: use of undeclared identifier 'quality'
    this->depth           = static_cast<itype>(this->filter_order(quality));
                                                                  ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:56:5: error: invalid use of 'this' outside of a non-static member function
    this->input_position  = 0;
    ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:57:5: error: invalid use of 'this' outside of a non-static member function
    this->output_position = 0;
    ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:59:25: error: use of undeclared identifier 'interpolation_factor'
    const i64 gcf = gcd(interpolation_factor, decimation_factor);
                        ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:59:47: error: use of undeclared identifier 'decimation_factor'
    const i64 gcf = gcd(interpolation_factor, decimation_factor);
                                              ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:60:5: error: use of undeclared identifier 'interpolation_factor'
    interpolation_factor /= gcf;
    ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:61:5: error: use of undeclared identifier 'decimation_factor'
    decimation_factor /= gcf;
    ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:63:5: error: invalid use of 'this' outside of a non-static member function
    this->taps  = this->depth * interpolation_factor;
    ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:63:19: error: invalid use of 'this' outside of a non-static member function
    this->taps  = this->depth * interpolation_factor;
                  ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:63:33: error: use of undeclared identifier 'interpolation_factor'
    this->taps  = this->depth * interpolation_factor;
                                ^
/wrkdirs/usr/ports/math/kfr/work/kfr-6.0.2/src/dsp/sample_rate_conversion.cpp:64:5: error: invalid use of 'this' outside of a non-static member function
    this->order = size_t(this->depth * interpolation_factor - 1);
    ^

log

Version: 6.0.2
clang-17
FreeBSD 14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions