Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Appveyor complaining

$
0
0

@edapx wrote:

Hello, I have an addon failing on windows with this error:

error: expected unqualified-id before '=' token
         float far = 0;
                   ^

The addon builds on mac and linux, and this is the class causing the error:

    class Mousepicker {
    public:
        Mousepicker(){};
        void setFromCamera(const glm::vec2 coords, const ofCamera camera);
        void draw(const float radius = 20.0f);
        Ray& getRay();

    private:
        Ray ray;
        float near = 0;
        float far = 0;
    };

It seems that windows does not like the initialization of the floats near and far. Any hint?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles