Git Product home page Git Product logo

Comments (6)

drewfish avatar drewfish commented on May 25, 2024

Thanks for the report. I'm not super-strong on C++ so this is curious to me too. What compiler (and version) are you using?

Since inheritance is used so lightly, if no other solution turns up I can always add a #define to conditionally adjust things.

from arduino-trimwright.

drewfish avatar drewfish commented on May 25, 2024

Oh hmm... this gives a clue:
https://stackoverflow.com/questions/307352/g-undefined-reference-to-typeinfo#307427
This seems to suggest that whatever build environment you have is not also compiling and linking TrimWright.cpp.

from arduino-trimwright.

SailingDreams avatar SailingDreams commented on May 25, 2024

I am building the Android Tree
I had looked at the link you mentioned and that gave a clue what it was due to a virtual function. By piecemeal adding the SM parts to my code, I figured out that it was the virtual declaration of the dispatch function.

from arduino-trimwright.

drewfish avatar drewfish commented on May 25, 2024

Hmm... the fact that you fixed it by commenting out the virtual suggests that your environment is probably compling and linking TrimWright.cpp. That same stackoverflow page mentions a few other causes (I should have kept reading). This makes me think that there might be value in dropping the inheritance (HSM no longer inherting from FSM), at least as a #define guarded option.

from arduino-trimwright.

drewfish avatar drewfish commented on May 25, 2024

I've created PR #6 which makes it so that HSM no longer inherits from FSM. Without that, lack of RTTI should hopefully not be an issue. Could you try it out?

from arduino-trimwright.

SailingDreams avatar SailingDreams commented on May 25, 2024

Sure. Hopefully have it checked by Wednesday.

from arduino-trimwright.

Related Issues (2)

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.