Giter Site home page Giter Site logo

Comments (6)

plasne avatar plasne commented on August 22, 2024

Oh, and BTW, you can forward declare the variable, so...
class widget;
...works. I don't know if this is just a change to the sample maybe or there is something that can be done in the source.

from azure-iot-arduino.

Endlesshunt avatar Endlesshunt commented on August 22, 2024

Hi, any fix/progress on this issue yet?

from azure-iot-arduino.

photomoose avatar photomoose commented on August 22, 2024

I'm getting the same issue. Did anyone manage to resolve it?

from azure-iot-arduino.

photomoose avatar photomoose commented on August 22, 2024

For reasons unknown to me, it appears to work if the namespace and model are declared in a separate file (e.g. a header file) rather than the main file containing setup() and loop(). This is also how it is done in the examples.

from azure-iot-arduino.

GregTerrell avatar GregTerrell commented on August 22, 2024

from azure-iot-arduino.

photomoose avatar photomoose commented on August 22, 2024

Thanks for the confirmation @GregTerrell. Indeed, defining the model in a .cpp file fails, whereas defining it in a .c file works fine. Back to basics for me, it has been years since I've done any C++/C.

from azure-iot-arduino.

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.