expected ‘,’ or ‘...’ before ‘protected’ compile error!

Hello guys, :-)

I’m creating an OpenGL simulation for my simulation program. I included the header files from my simulation in my Qt program. I got this error while trying to compile.

the whole class I’m using is as follows:

1
2
3
4
5
6
7
8
9
10
class LowPassGaussian
{ 
    double currValue;
    const gsl_rng_type *T;
    gsl_rng *r;
public:
    LowPassGaussian();
    bool lowPassGaussianStep(double &signal, double cutoff_freq, double amplitude, double sampling_rate);
    bool lowPassGaussianStep(const vector<double*> &signals, double cutoff_freq, double amplitude, double sampling_rate); //error occurs here at the vector part
};


Note: I have “using namespace std” at the beginning of the file. And I tried adding std:: to the vector definion but no use!!!

This header files compile on Linux g++ with no problems, but on Qt platform it doesn’t compile.

Could you guys please help? I don’t really know how to start with this! I tried everything I know!!!

Thank you :-)
I don't want to state the obvious, but have you included vector (header file)?
Yes I did.

I got the problem. The word "signals" is reserved in Qt.

Thanks for reading :-)
I got the problem. The word "signals" is reserved in Qt.

that's just plain nasty!

especially since it's a lower-cased signals - I mean, if it was like Signal in some Qt namespace, that'd be ok, but this kind of namespace leakage is not very nice...
Last edited on
Topic archived. No new replies allowed.