Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Compilation error in IDE as well as Codebender

Compilation error in IDE as well as Codebender

Scheduled Pinned Locked Moved Development
code bender err
8 Posts 3 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sm7fiu
    wrote on last edited by
    #1

    Hi, I am trying to compile some of the examples. The last one I tried was the Relay example. I compiled it using the codebender and it fails compilation.
    I have also tried some other examples and compiled them in my IDE. They fail to. What could be wrong?? Regards Peter

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Panos Toumpaniaris
      wrote on last edited by
      #2

      You should make sure you're using the appropriate API version. Codebender is on 1.4 AFAIK .

      For the ide have you perhaps update some of the libraries with ide updater?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sm7fiu
        wrote on last edited by
        #3

        I did not know there is one... :-)
        Cant find anything in the IDE meny?

        For the Codebender I followed the link in the example so I guess that leads to the correct version

        /Peter

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sm7fiu
          wrote on last edited by
          #4

          Codebender app is 1.0.0.5 by the way.

          /Peter

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Panos Toumpaniaris
            wrote on last edited by
            #5

            Have you followed the instructions in the download page?

            http://www.mysensors.org/download/

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sm7fiu
              wrote on last edited by
              #6

              I have reduced the example (in my local IDE) to:
              #include <MySensor.h>
              MySensor gw

              The compilation error is that "MySensor" does not name a type. Seems as the library is not recognized?

              1 Reply Last reply
              0
              • hekH Online
                hekH Online
                hek
                Admin
                wrote on last edited by hek
                #7

                You probably have an old version of the MySensors library in your private collection (on codebender). Remove it and clone a sketch from the website again (with libraries).

                If you have problems in the local IDE you haven't installed the library correctly so it is found by your IDE. Follow instructions on the main site.

                Make sure you haven't downloaded the development branch from github (if you don't actually want to use it). The zip-download links on the main site should give you the correct versions.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sm7fiu
                  wrote on last edited by
                  #8

                  Solved! Thanks!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  12

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.0k

                  Posts


                  Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular