Giter VIP home page Giter VIP logo

Comments (5)

jonbro avatar jonbro commented on August 21, 2024

I am also seeing this issue on codeblocks windows. Are you using some cool new compiler features that I need to enable?

from ofxbox2d.

liquidzym avatar liquidzym commented on August 21, 2024

@jonbro,sorry,no.i'm just temporarily add return vector <ofPoint>();only, which seems not so right,but does compiled

from ofxbox2d.

lucaconte avatar lucaconte commented on August 21, 2024

Under Linux (Debian/Jessie GCC) this fix (returning vector of ofPoint) doesn't wotk for me. I obtain:

ofxBox2dPolygon.cpp:299:28: error: invalid initialization of non-const reference of type ‘std::vector&’ from an rvalue of type ‘std::vector’

I "solved" using: return ofPolyline::getVertices();

...but I really don't know if it is a good workaround.

from ofxbox2d.

micuat avatar micuat commented on August 21, 2024

similar to @LucaCo, return vector <ofPoint>(); didn't work with my OSX 10.6 so I tried

if(body == NULL) {
    static vector <ofPoint> v;
    return v;

}

and it is compiled.

from ofxbox2d.

dedefefe avatar dedefefe commented on August 21, 2024

any solution here, after trying all the solutions above it does compile, but I am not able to get any of the lines drawing to work, examples (Bodies and Polygon).

from ofxbox2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.